|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.buildforge.services.common.ServiceException
com.buildforge.services.common.api.ProtocolException
public class ProtocolException
Internationalized exceptions for the API protocol layer.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.buildforge.services.common.ServiceException |
---|
ServiceException.WrappedServiceException |
Field Summary |
---|
Fields inherited from class com.buildforge.services.common.ServiceException |
---|
CLASS |
Constructor Summary | |
---|---|
ProtocolException(MessageDBO msg)
Construct a new ProtocolException from a pre-built message. |
|
ProtocolException(MessageDBO msg,
java.lang.Throwable cause)
Construct a new ProtocolException from a pre-built message. |
|
ProtocolException(java.lang.String id)
Construct a new ProtocolException. |
|
ProtocolException(java.lang.String id,
int arg)
Construct a new ProtocolException. |
|
ProtocolException(java.lang.String id,
int arg,
java.lang.Throwable cause)
Construct a new ProtocolException. |
|
ProtocolException(java.lang.String id,
java.lang.String arg)
Construct a new ProtocolException. |
|
ProtocolException(java.lang.String id,
java.lang.String[] args)
Construct a new ProtocolException. |
|
ProtocolException(java.lang.String id,
java.lang.String[] args,
java.lang.Throwable cause)
Construct a new ProtocolException |
|
ProtocolException(java.lang.String id,
java.lang.String arg,
java.lang.Throwable cause)
Construct a new ProtocolException. |
|
ProtocolException(java.lang.String id,
java.lang.Throwable cause)
Construct a new ProtocolException. |
Method Summary | |
---|---|
static ProtocolException |
corrupted()
Returns an exception to indicate that the protocol stream is permanently corrupted and can no longer be used. |
Methods inherited from class com.buildforge.services.common.ServiceException |
---|
getMessage, getMessageKey, getMessageObject, wrap |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProtocolException(MessageDBO msg)
msg
- the internationalized error message
java.lang.NullPointerException
- if msg is nullpublic ProtocolException(MessageDBO msg, java.lang.Throwable cause)
msg
- the internationalized error messagecause
- an exception that caused this exception to occur
java.lang.NullPointerException
- if msg is nullpublic ProtocolException(java.lang.String id)
id
- a unique error id for a translatable messagepublic ProtocolException(java.lang.String id, java.lang.String[] args)
id
- a unique error id for a translatable messageargs
- arguments for the translationpublic ProtocolException(java.lang.String id, int arg)
id
- a unique error id for a translatable messagearg
- a single argument for the translationpublic ProtocolException(java.lang.String id, java.lang.String arg)
id
- a unique error id for a translatable messagearg
- a single argument for the translationpublic ProtocolException(java.lang.String id, java.lang.Throwable cause)
id
- a unique error id for a translatable messagecause
- the exception to use when initializing the causepublic ProtocolException(java.lang.String id, java.lang.String[] args, java.lang.Throwable cause)
id
- a unique error id for a translatable messageargs
- arguments for the translationcause
- the exception to use when initializing the causepublic ProtocolException(java.lang.String id, int arg, java.lang.Throwable cause)
id
- a unique error id for a translatable messagearg
- a single argument for the translationcause
- the exception to use when initializing the causepublic ProtocolException(java.lang.String id, java.lang.String arg, java.lang.Throwable cause)
id
- a unique error id for a translatable messagearg
- a single argument for the translationcause
- the exception to use when initializing the causeMethod Detail |
---|
public static ProtocolException corrupted()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |