public class InvalidParameterException extends RuntimeException implements MAJException
Thrown whenever a method call parameter contains a value that is invalid in the current context. For example, when looking up a definition in the dictionary using an identifier, if no definition of the appropriate type is available then this exception is thrown.
Note that this exception if different from IllegalArgumentException
as this exception is thrown when a parameter is invalid in the current context, whereas
IllegalArgumentException is thrown when a
parameter is illegal in any context. For example, looking up a definition that is
not in a dictionary is invalid if the definition is not currently in that
dictionary. Trying to set a non-negative parameter to a negative value is
illegal.
Equivalent C result code: AAFRESULT_INVALID_PARAM 0x8012016C
Dictionary,
Serialized Form| Constructor and Description |
|---|
InvalidParameterException()
Create a new invalid parameter exception with no message.
|
InvalidParameterException(String msg)
Create a new invalid parameter exception with the given descriptive message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InvalidParameterException(String msg)
Create a new invalid parameter exception with the given descriptive message.
msg - Message describing the exception.public InvalidParameterException()
Create a new invalid parameter exception with no message.
(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.