/// Convert this error to a regular `Error` type.
Convert this error to a regular `Error` type.
Convert this error to a regular ` Error ` type .
pub fn into_error(self, pos: Pos, expected_type: String) -> Error {
        match self {
            InputValueError::Custom(reason) => Error::Query {
                pos,
                path: None,
                err: QueryError::ParseInputValue { reason },
            },
            InputValueError::ExpectedType(value) => Error::Query {
                pos,
                path: None,
                err: QueryError::ExpectedInputType {
                    expect: expected_type,
                    actual: value,
                },
            },
        }
    }
pub fn into_error ( self , pos : Pos , expected_type : String ) -> Error { match self { InputValueError :: Custom ( reason ) => Error :: Query { pos , path : None , err : QueryError :: ParseInputValue { reason } , } , InputValueError :: ExpectedType ( value ) => Error :: Query { pos , path : None , err : QueryError :: ExpectedInputType { expect : expected_type , actual : value , } , } , } }
Convert this error to a regular `Error` type.
Convert this error to a regular ` Error ` type .
self
pos
Pos
expected_type
String