Media Authoring
with Java API

tv.amwa.maj.exception
Class InvalidParameterException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by tv.amwa.maj.exception.InvalidParameterException
All Implemented Interfaces:
Serializable, MAJException

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

Author:
Richard Cartwright
See Also:
Dictionary, Serialized Form

Constructor Summary
InvalidParameterException()
          Create a new invalid parameter exception with no message.
InvalidParameterException(String msg)
          Create a new invalid parameter exception with the given descriptive message.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidParameterException

public InvalidParameterException(String msg)

Create a new invalid parameter exception with the given descriptive message.

Parameters:
msg - Message describing the exception.

InvalidParameterException

public InvalidParameterException()

Create a new invalid parameter exception with no message.


Media Authoring
with Java API

(c) 2007-2008 Richard Cartwright, all rights reserved. Subject to the terms of the AAF SDK Public Source License.