ToErrorValue
This trait provides a mechanism for converting a type into an InputValue representation specifically for error reporting. It defines a single method, to_error_value, which consumers implement to customize how specific data types are serialized or formatted when an error occurs.
Methods
to_error_value()
def to_error_value() - > [InputValue](inputvalue.md?sid=errors_line_error_inputvalue)
Converts the current object into an InputValue representation specifically for error reporting or debugging purposes.
Returns
| Type | Description |
|---|---|
[InputValue](inputvalue.md?sid=errors_line_error_inputvalue) | An InputValue instance representing the error state of the object. |