diff options
author | Frank Elias <francois.elias@livio.io> | 2021-01-26 14:50:18 -0500 |
---|---|---|
committer | Frank Elias <francois.elias@livio.io> | 2021-01-26 14:50:18 -0500 |
commit | ad81e2ab606750819dd95522cd9b3e9c1c6feb8c (patch) | |
tree | ce49bcf60dd5b43478f2c66ae1c66e09a47193d6 | |
parent | 7550137b4e14c35d0304f5d586dadab86fc1998b (diff) | |
download | sdl_ios-ad81e2ab606750819dd95522cd9b3e9c1c6feb8c.tar.gz |
Comments review
-rw-r--r-- | SmartDeviceLink/private/SDLError.h | 2 | ||||
-rw-r--r-- | SmartDeviceLink/private/SDLError.m | 4 | ||||
-rw-r--r-- | SmartDeviceLink/private/SDLSoftButtonManager.m | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/SmartDeviceLink/private/SDLError.h b/SmartDeviceLink/private/SDLError.h index 81956b831..4b3099a84 100644 --- a/SmartDeviceLink/private/SDLError.h +++ b/SmartDeviceLink/private/SDLError.h @@ -95,7 +95,7 @@ NS_ASSUME_NONNULL_BEGIN @interface NSException (SDLExceptions) -+ (NSException *)sdl_duplicateSoftButtonsTitleException; ++ (NSException *)sdl_duplicateSoftButtonsNameException; + (NSException *)sdl_missingHandlerException; + (NSException *)sdl_missingIdException; + (NSException *)sdl_missingFilesException; diff --git a/SmartDeviceLink/private/SDLError.m b/SmartDeviceLink/private/SDLError.m index 81616bf79..0874e0674 100644 --- a/SmartDeviceLink/private/SDLError.m +++ b/SmartDeviceLink/private/SDLError.m @@ -407,8 +407,8 @@ NS_ASSUME_NONNULL_BEGIN @implementation NSException (SDLExceptions) -+ (NSException *)sdl_duplicateSoftButtonsTitleException { - return [NSException exceptionWithName:@"InvalidSoftButtonsInitialization" reason:@"Attempting to create soft buttons with the same title" userInfo:nil]; ++ (NSException *)sdl_duplicateSoftButtonsNameException { + return [NSException exceptionWithName:@"InvalidSoftButtonsInitialization" reason:@"Attempting to create soft buttons with the same name" userInfo:nil]; } + (NSException *)sdl_missingHandlerException { diff --git a/SmartDeviceLink/private/SDLSoftButtonManager.m b/SmartDeviceLink/private/SDLSoftButtonManager.m index 6075d452e..2a637f831 100644 --- a/SmartDeviceLink/private/SDLSoftButtonManager.m +++ b/SmartDeviceLink/private/SDLSoftButtonManager.m @@ -133,7 +133,7 @@ NS_ASSUME_NONNULL_BEGIN if ([softButtonObjects[j].name isEqualToString:buttonName]) { _softButtonObjects = @[]; SDLLogE(@"Attempted to set soft button objects, but two buttons had the same name: %@", softButtonObjects); - @throw [NSException sdl_duplicateSoftButtonsTitleException]; + @throw [NSException sdl_duplicateSoftButtonsNameException]; } } } |