|
||||||||||
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 String |
longMessage
The long message. |
protected Object |
source
The source. |
Constructor Summary | |
---|---|
EnforcerRuleException(Object source,
String shortMessage,
String longMessage)
Construct a new EnforcerRuleException exception providing
the source and a short and long message. |
|
EnforcerRuleException(String message)
Construct a new EnforcerRuleException exception providing
a message . |
|
EnforcerRuleException(String message,
Exception cause)
Construct a new EnforcerRuleException exception wrapping
an underlying Exception and providing a
message . |
|
EnforcerRuleException(String message,
Throwable cause)
Construct a new EnforcerRuleException exception wrapping
an underlying Throwable and providing a
message . |
Method Summary | |
---|---|
String |
getLongMessage()
Gets the long message. |
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 Object source
protected String longMessage
Constructor Detail |
---|
public EnforcerRuleException(Object source, String shortMessage, String longMessage)
EnforcerRuleException
exception providing
the source and a short and long message.
source
- the sourceshortMessage
- the short messagelongMessage
- the long messagepublic EnforcerRuleException(String message, Exception cause)
EnforcerRuleException
exception wrapping
an underlying Exception
and providing a
message
.
message
- the messagecause
- the causepublic EnforcerRuleException(String message, Throwable cause)
EnforcerRuleException
exception wrapping
an underlying Throwable
and providing a
message
.
message
- the messagecause
- the causepublic EnforcerRuleException(String message)
EnforcerRuleException
exception providing
a message
.
message
- the messageMethod Detail |
---|
public String getLongMessage()
public Object getSource()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |