Media Authoring
with Java API

tv.amwa.maj.exception
Class BadPropertyException

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

public class BadPropertyException
extends RuntimeException
implements MAJException

Thrown when an optional property should be omitted in the current context. In the AAF specification, the cases when this can occur are labelled as Conditional Rules. This is different from a PropertyNotPresentException which is thrown when an attempt is made to read an optional property that is currently omitted.

For example, according to conditional rule 1 of the event class, its a position property shall only be present when it is in an event mob slot. Any attempt to set or get this property in another context should result in this exception being thrown.

Equivalent C result code: AAFRESULT_BAD_PROP 0x801200CB

Author:
Richard Cartwright
See Also:
Event, EventMobSlot, Component, Sequence, AAFFileDescriptor, Serialized Form

Constructor Summary
BadPropertyException()
          Create a new bad property exception with no message.
BadPropertyException(String msg)
          Create a new bad property 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

BadPropertyException

public BadPropertyException(String msg)

Create a new bad property exception with the given descriptive message.

Parameters:
msg - Message describing the exception.

BadPropertyException

public BadPropertyException()

Create a new bad property 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.