public class InstanceOverflowException extends RuntimeException implements MAJException, NewForMAJ
Thrown when the instance generator of a package 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.
PackageID.nextInstance(),
Serialized Form| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
InstanceNumberGeneration |
getGenerator()
Returns the kind of instance number generator that overflowed and caused
this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic 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.
msg - Message describing the exception.generator - Kind of instance number generator that has overflowed.public InstanceOverflowException()
Create a new instance number generator exception with no error message.
public InstanceNumberGeneration getGenerator()
Returns the kind of instance number generator that overflowed and caused this exception.
InstanceNumberGeneration.NotDefined if the kind of generator
is not known.(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.