diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2020-03-04 16:11:25 -0500 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2020-03-04 16:11:25 -0500 |
commit | 94b1d60dfc7f6722c0a13e2ed0d49460d07fcfac (patch) | |
tree | c443a35fb4875bc8ca6acbbf3292f2c672cea2fe | |
parent | f726acfc7220b9cac7c499959edf3bea549c92b9 (diff) | |
download | sdl_ios-94b1d60dfc7f6722c0a13e2ed0d49460d07fcfac.tar.gz |
Remove useless SDLError recovery dictionary key
-rw-r--r-- | SmartDeviceLink/SDLError.m | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/SmartDeviceLink/SDLError.m b/SmartDeviceLink/SDLError.m index b06d3dc3e..d98609d89 100644 --- a/SmartDeviceLink/SDLError.m +++ b/SmartDeviceLink/SDLError.m @@ -70,8 +70,7 @@ SDLErrorDomain *const SDLErrorDomainRPCStore = @"com.sdl.rpcStore.error"; + (NSError *)sdl_lifecycle_rpcErrorWithDescription:(NSString *)description andReason:(NSString *)reason { NSDictionary<NSString *, NSString *> *userInfo = @{ NSLocalizedDescriptionKey: NSLocalizedString(description, nil), - NSLocalizedFailureReasonErrorKey: NSLocalizedString(reason, nil), - NSLocalizedRecoverySuggestionErrorKey: NSLocalizedString(@"Have you tried turning it off and on again?", nil) + NSLocalizedFailureReasonErrorKey: NSLocalizedString(reason, nil) }; return [NSError errorWithDomain:SDLErrorDomainLifecycleManager code:SDLManagerErrorRPCRequestFailed @@ -81,8 +80,7 @@ SDLErrorDomain *const SDLErrorDomainRPCStore = @"com.sdl.rpcStore.error"; + (NSError *)sdl_lifecycle_notConnectedError { NSDictionary<NSString *, NSString *> *userInfo = @{ NSLocalizedDescriptionKey: NSLocalizedString(@"Could not find a connection", nil), - NSLocalizedFailureReasonErrorKey: NSLocalizedString(@"The SDL library could not find a current connection to an SDL hardware device", nil), - NSLocalizedRecoverySuggestionErrorKey: NSLocalizedString(@"Have you tried turning it off and on again?", nil) + NSLocalizedFailureReasonErrorKey: NSLocalizedString(@"The SDL library could not find a current connection to an SDL hardware device", nil) }; return [NSError errorWithDomain:SDLErrorDomainLifecycleManager @@ -93,8 +91,7 @@ SDLErrorDomain *const SDLErrorDomainRPCStore = @"com.sdl.rpcStore.error"; + (NSError *)sdl_lifecycle_notReadyError { NSDictionary<NSString *, NSString *> *userInfo = @{ NSLocalizedDescriptionKey: NSLocalizedString(@"Lifecycle manager not ready", nil), - NSLocalizedFailureReasonErrorKey: NSLocalizedString(@"The SDL library is not finished setting up the connection, please wait until the lifecycleState is SDLLifecycleStateReady", nil), - NSLocalizedRecoverySuggestionErrorKey: NSLocalizedString(@"Have you tried turning it off and on again?", nil) + NSLocalizedFailureReasonErrorKey: NSLocalizedString(@"The SDL library is not finished setting up the connection, please wait until the lifecycleState is SDLLifecycleStateReady", nil) }; return [NSError errorWithDomain:SDLErrorDomainLifecycleManager @@ -105,8 +102,7 @@ SDLErrorDomain *const SDLErrorDomainRPCStore = @"com.sdl.rpcStore.error"; + (NSError *)sdl_lifecycle_unknownRemoteErrorWithDescription:(NSString *)description andReason:(NSString *)reason { NSDictionary<NSString *, NSString *> *userInfo = @{ NSLocalizedDescriptionKey: NSLocalizedString(description, nil), - NSLocalizedFailureReasonErrorKey: NSLocalizedString(reason, nil), - NSLocalizedRecoverySuggestionErrorKey: NSLocalizedString(@"Have you tried turning it off and on again?", nil) + NSLocalizedFailureReasonErrorKey: NSLocalizedString(reason, nil) }; return [NSError errorWithDomain:SDLErrorDomainLifecycleManager code:SDLManagerErrorUnknownRemoteError |