Update the exception name description

This commit is contained in:
DreamPiggy 2019-09-20 15:57:20 +08:00
parent fb6819add0
commit 786d5f8173
1 changed files with 7 additions and 7 deletions

View File

@ -58,43 +58,43 @@
+ (SDImageFormat)imageFormat { + (SDImageFormat)imageFormat {
@throw [NSException exceptionWithName:NSInternalInconsistencyException @throw [NSException exceptionWithName:NSInternalInconsistencyException
reason:[NSString stringWithFormat:@"Must override %@ in subclass", NSStringFromSelector(_cmd)] reason:[NSString stringWithFormat:@"For `SDImageIOAnimatedCoder` subclass, you must override %@ method", NSStringFromSelector(_cmd)]
userInfo:nil]; userInfo:nil];
} }
+ (NSString *)imageUTType { + (NSString *)imageUTType {
@throw [NSException exceptionWithName:NSInternalInconsistencyException @throw [NSException exceptionWithName:NSInternalInconsistencyException
reason:[NSString stringWithFormat:@"Must override %@ in subclass", NSStringFromSelector(_cmd)] reason:[NSString stringWithFormat:@"For `SDImageIOAnimatedCoder` subclass, you must override %@ method", NSStringFromSelector(_cmd)]
userInfo:nil]; userInfo:nil];
} }
+ (NSString *)dictionaryProperty { + (NSString *)dictionaryProperty {
@throw [NSException exceptionWithName:NSInternalInconsistencyException @throw [NSException exceptionWithName:NSInternalInconsistencyException
reason:[NSString stringWithFormat:@"Must override %@ in subclass", NSStringFromSelector(_cmd)] reason:[NSString stringWithFormat:@"For `SDImageIOAnimatedCoder` subclass, you must override %@ method", NSStringFromSelector(_cmd)]
userInfo:nil]; userInfo:nil];
} }
+ (NSString *)unclampedDelayTimeProperty { + (NSString *)unclampedDelayTimeProperty {
@throw [NSException exceptionWithName:NSInternalInconsistencyException @throw [NSException exceptionWithName:NSInternalInconsistencyException
reason:[NSString stringWithFormat:@"Must override %@ in subclass", NSStringFromSelector(_cmd)] reason:[NSString stringWithFormat:@"For `SDImageIOAnimatedCoder` subclass, you must override %@ method", NSStringFromSelector(_cmd)]
userInfo:nil]; userInfo:nil];
} }
+ (NSString *)delayTimeProperty { + (NSString *)delayTimeProperty {
@throw [NSException exceptionWithName:NSInternalInconsistencyException @throw [NSException exceptionWithName:NSInternalInconsistencyException
reason:[NSString stringWithFormat:@"Must override %@ in subclass", NSStringFromSelector(_cmd)] reason:[NSString stringWithFormat:@"For `SDImageIOAnimatedCoder` subclass, you must override %@ method", NSStringFromSelector(_cmd)]
userInfo:nil]; userInfo:nil];
} }
+ (NSString *)loopCountProperty { + (NSString *)loopCountProperty {
@throw [NSException exceptionWithName:NSInternalInconsistencyException @throw [NSException exceptionWithName:NSInternalInconsistencyException
reason:[NSString stringWithFormat:@"Must override %@ in subclass", NSStringFromSelector(_cmd)] reason:[NSString stringWithFormat:@"For `SDImageIOAnimatedCoder` subclass, you must override %@ method", NSStringFromSelector(_cmd)]
userInfo:nil]; userInfo:nil];
} }
+ (NSUInteger)defaultLoopCount { + (NSUInteger)defaultLoopCount {
@throw [NSException exceptionWithName:NSInternalInconsistencyException @throw [NSException exceptionWithName:NSInternalInconsistencyException
reason:[NSString stringWithFormat:@"Must override %@ in subclass", NSStringFromSelector(_cmd)] reason:[NSString stringWithFormat:@"For `SDImageIOAnimatedCoder` subclass, you must override %@ method", NSStringFromSelector(_cmd)]
userInfo:nil]; userInfo:nil];
} }