NSInvalidArgumentException

E821135

NSInvalidArgumentException is a Cocoa/Cocoa Touch exception type thrown when a method receives an invalid or inappropriate argument.

Try in SPARQL Jump to: Statements Referenced by

Statements (46)

Predicate Object
instanceOf Cocoa Touch exception
Cocoa exception
Objective-C exception type
belongsToFrameworkFamily Foundation NERFINISHED
bestPractice avoid by checking method parameters
canBeCaughtAs NSException NERFINISHED
category runtime exception
commonCause calling method with wrong type of argument
invalid parameter value
passing nil where nonnull is required
unrecognized selector sent to instance
definedIn Cocoa NERFINISHED
Cocoa Touch NERFINISHED
Foundation framework NERFINISHED
distinguishedFrom NSError-based recoverable errors
documentationSection Exceptions in Foundation Framework NERFINISHED
errorDomain NSException NERFINISHED
handledBy @try-@catch blocks in Objective-C
introducedBy Apple NERFINISHED
isFatalByDefault true
language Objective-C NERFINISHED
loggingBehavior includes name and reason in exception description
nameConstantType NSString *
namespace Foundation
relatedConcept NSGenericException NERFINISHED
NSInternalInconsistencyException
NSRangeException NERFINISHED
relatedTo NSException NERFINISHED
requires programmer to validate arguments
role indicates programmer error in API usage
superclassType NSException NERFINISHED
thrownBy Objective-C runtime NERFINISHED
thrownInContext Cocoa API parameter validation
Objective-C message dispatch
thrownWhen method receives inappropriate argument
method receives invalid argument
typicalHandling crash if uncaught
typicalReasonString "*** -[Class method]: unrecognized selector sent to instance" GENERATED
usagePattern checked in @catch(NSException *exception) blocks
usedInLanguage Objective-C NERFINISHED
usedInPlatform iOS NERFINISHED
macOS NERFINISHED
tvOS NERFINISHED
watchOS NERFINISHED
usedSince early versions of Cocoa
usedWith NSExceptionName NERFINISHED

Referenced by (1)

Full triples — surface form annotated when it differs from this entity's canonical label.

NSException hasSubclass NSInvalidArgumentException