**PROTOCOL** # `RestlerErrorParserType` An object parsing the given error to given types of the RestlerErrorDecodables. ## Properties ### `decodingErrors` An array of all errors' types that will be tried to decode on request failure. ## Methods ### `decode(_:)` Try to decode the error on failure of the data task. If the request will end with error, the given error would be decoded if init of the error doesn't return nil. Otherwise the Restler.Error.common will be returned. - Note: If multiple errors will be decoded. The completion will return Restler.Error.multiple with all the decoded errors. - Parameters: - type: A type for the error to be decoded. It will be added to an array of errors to decode on failed request. ### `stopDecoding(_:)` Removed the given error type from the array of error types to decode. - Parameters: - type: An error type to remove from decoding errors array. ### `parse(_:)` Tries to parse the given error into the decodable errors. - Parameters: - error: An error to be parsed. - Returns: - Decoded error if one of the errors were decoded successfully - `Restler.Error.multiple` if multiple errors were decoded. - The input error, if error couldn't be parsed to any other error type.