|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.apache.maven.enforcer.rule.api.EnforcerRuleException
public class EnforcerRuleException
An exception occurring during the execution of a rule. Based off of EnforcerRuleException, but separated to keep the rule dependencies to a minimum.
Field Summary | |
---|---|
protected java.lang.String |
longMessage
The long message. |
protected java.lang.Object |
source
The source. |
Constructor Summary | |
---|---|
EnforcerRuleException(java.lang.Object source,
java.lang.String shortMessage,
java.lang.String longMessage)
Construct a new EnforcerRuleException exception providing
the source and a short and long message. |
|
EnforcerRuleException(java.lang.String message)
Construct a new EnforcerRuleException exception providing
a message . |
|
EnforcerRuleException(java.lang.String message,
java.lang.Exception cause)
Construct a new EnforcerRuleException exception wrapping
an underlying Exception and providing a
message . |
|
EnforcerRuleException(java.lang.String message,
java.lang.Throwable cause)
Construct a new EnforcerRuleException exception wrapping
an underlying Throwable and providing a
message . |
Method Summary | |
---|---|
java.lang.String |
getLongMessage()
Gets the long message. |
java.lang.Object |
getSource()
Gets the source. |
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.Object source
protected java.lang.String longMessage
Constructor Detail |
---|
public EnforcerRuleException(java.lang.Object source, java.lang.String shortMessage, java.lang.String longMessage)
EnforcerRuleException
exception providing
the source and a short and long message.
source
- the sourceshortMessage
- the short messagelongMessage
- the long messagepublic EnforcerRuleException(java.lang.String message, java.lang.Exception cause)
EnforcerRuleException
exception wrapping
an underlying Exception
and providing a
message
.
message
- the messagecause
- the causepublic EnforcerRuleException(java.lang.String message, java.lang.Throwable cause)
EnforcerRuleException
exception wrapping
an underlying Throwable
and providing a
message
.
message
- the messagecause
- the causepublic EnforcerRuleException(java.lang.String message)
EnforcerRuleException
exception providing
a message
.
message
- the messageMethod Detail |
---|
public java.lang.String getLongMessage()
public java.lang.Object getSource()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |