com.waveset.exception
Class PolicyViolation
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.waveset.util.ExceptionWrapper
com.waveset.util.WavesetException
com.waveset.exception.PolicyViolation
- All Implemented Interfaces:
- java.io.Serializable
- public class PolicyViolation
- extends WavesetException
An exception thrown when a policy has been violated.
The message is supplied, and should be meaningful.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
code_id
|
Constructor Summary |
PolicyViolation(Message message)
Construct a violation exception with a message object. |
PolicyViolation(java.lang.String policyName,
java.lang.String message)
Construct a new object with a detailed message. |
Methods inherited from class com.waveset.util.WavesetException |
addMessage, addMessage, breakpoint, checkBreakpoint, enableBreakpoint, getLocalizedMessage, getLocalizedMessage, getMessage, getMessage, getMessage, getMessageObject, getMessageObject, getMessageOnly, getMessages |
Methods inherited from class com.waveset.util.ExceptionWrapper |
addException, clearExceptions, describeException, getAllMessages, getException, getException, getExceptionCount, hasException, printStackTrace, printStackTrace, printStackTrace, removeException |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
code_id
public static final java.lang.String code_id
- See Also:
- Constant Field Values
PolicyViolation
public PolicyViolation(Message message)
- Construct a violation exception with a message object.
- Parameters:
message
- detailed message.
PolicyViolation
public PolicyViolation(java.lang.String policyName,
java.lang.String message)
- Construct a new object with a detailed message.
This shouldn't be used by internal code, since the message
will have to be pre-formatted and it may be in the wrong
locale. This is only a convenience method for external policies
that don't want to mess with message catalogs.
- Parameters:
policyName
- name of the policy.message
- detailed message.