It looks like we have an incorrect access level of variables of AuthorizationError class as well as the inner ErrorType enum.
This is the current implementation:
@objc public class AuthorizationError: NSObject, Error {
enum ErrorType {
...
}
var type: ErrorType
var errorDescription: String?
var vehicleInfo: VehicleInfo?
init(type: ErrorType, errorDescription: String? = nil, vehicleInfo: VehicleInfo? = nil) {
...
}
}
This implementation doesn't let to know anything about the instance of the AuthorizationError class because all variables have the internal access level.
It looks like we have an incorrect access level of variables of
AuthorizationError
class as well as the innerErrorType
enum.This is the current implementation:
This implementation doesn't let to know anything about the instance of the
AuthorizationError
class because all variables have the internal access level.