Media Authoring
with Java API

tv.amwa.maj.exception
Class InstanceOverflowException

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

public class InstanceOverflowException
extends RuntimeException
implements MAJException, NewForMAJ

Thrown when the instance generator of a mob id overflows. The exception can be queried to find out what kind of instance number generator is causing an overflow condition.

No equivalent C result code.

Author:
Richard Cartwright
See Also:
MobID.nextInstance(), Serialized Form

Constructor Summary
InstanceOverflowException()
          Create a new instance number generator exception with no error message.
InstanceOverflowException(String msg, InstanceNumberGeneration generator)
          Create a new instance number generator exception with the given error message and containing the kind of generator that has overflowed.
 
Method Summary
 InstanceNumberGeneration getGenerator()
          Returns the kind of instance number generator that overflowed and caused this exception.
 
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

InstanceOverflowException

public InstanceOverflowException(String msg,
                                 InstanceNumberGeneration generator)

Create a new instance number generator exception with the given error message and containing the kind of generator that has overflowed.

Parameters:
msg - Message describing the exception.
generator - Kind of instance number generator that has overflowed.

InstanceOverflowException

public InstanceOverflowException()

Create a new instance number generator exception with no error message.

Method Detail

getGenerator

public InstanceNumberGeneration getGenerator()

Returns the kind of instance number generator that overflowed and caused this exception.

Returns:
The kind of instance number generator that has overflowed, or InstanceNumberGeneration.NotDefined if the kind of generator is not known.

Media Authoring
with Java API

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