|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
umontreal.iro.lecuyer.contactcenters.contact.ContactInstantiationException
public class ContactInstantiationException
This exception is thrown when a contact factory cannot instantiate a contact
on a call to its ContactFactory.newInstance()
method.
Constructor Summary | |
---|---|
ContactInstantiationException(ContactFactory factory)
Constructs a new contact instantiation exception with no message, no cause, and thrown by the given factory. |
|
ContactInstantiationException(ContactFactory factory,
String message)
Constructs a new contact instantiation exception with the given message, no cause, and concerning factory. |
|
ContactInstantiationException(ContactFactory factory,
String message,
Throwable cause)
Constructs a new contact instantiation exception with the given message, the supplied cause, and concerning factory. |
|
ContactInstantiationException(ContactFactory factory,
Throwable cause)
Constructs a new contact instantiation exception with no message, the given cause, and concerning factory. |
Method Summary | |
---|---|
ContactFactory |
getContactFactory()
Returns the contact factory concerned by this exception. |
String |
toString()
Returns a short description of the exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ContactInstantiationException(ContactFactory factory)
factory
- the contact factory having thrown the exception.public ContactInstantiationException(ContactFactory factory, String message)
factory
- the contact factory concerned by the exception.message
- the error message describing the exception.public ContactInstantiationException(ContactFactory factory, Throwable cause)
factory
- the contact factory concerned by the exception.cause
- the cause of the exception.public ContactInstantiationException(ContactFactory factory, String message, Throwable cause)
factory
- the contact factory concerned by the exception.message
- the error message describing the exception.cause
- the cause of the exception.Method Detail |
---|
public ContactFactory getContactFactory()
public String toString()
getContactFactory()
returns null,
this calls super.toString. Otherwise, the
result is the concatenation of the strings:
getContactFactory()
.toString()
Throwable.getMessage()
is non-null
Throwable.getMessage()
toString
in class Throwable
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |