Class EnforcerRuleException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.maven.enforcer.rule.api.EnforcerRuleException
- All Implemented Interfaces:
Serializable
An exception occurring during the execution of a rule. Based off of
EnforcerRuleException, but separated to keep the rule dependencies to a
minimum.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEnforcerRuleException
(Object source, String shortMessage, String longMessage) Construct a newEnforcerRuleException
exception providing the source and a short and long message.EnforcerRuleException
(String message) Construct a newEnforcerRuleException
exception providing amessage
.EnforcerRuleException
(String message, Exception cause) Construct a newEnforcerRuleException
exception wrapping an underlyingException
and providing amessage
.EnforcerRuleException
(String message, Throwable cause) Construct a newEnforcerRuleException
exception wrapping an underlyingThrowable
and providing amessage
. -
Method Summary
Modifier and TypeMethodDescriptionGets the long message.Gets the source.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDserialVersionUID.- See Also:
-
source
The source. -
longMessage
The long message.
-
-
Constructor Details
-
EnforcerRuleException
Construct a newEnforcerRuleException
exception providing the source and a short and long message.- Parameters:
source
- the sourceshortMessage
- the short messagelongMessage
- the long message
-
EnforcerRuleException
Construct a newEnforcerRuleException
exception wrapping an underlyingException
and providing amessage
.- Parameters:
message
- the messagecause
- the cause
-
EnforcerRuleException
Construct a newEnforcerRuleException
exception wrapping an underlyingThrowable
and providing amessage
.- Parameters:
message
- the messagecause
- the cause
-
EnforcerRuleException
Construct a newEnforcerRuleException
exception providing amessage
.- Parameters:
message
- the message
-
-
Method Details
-
getLongMessage
Gets the long message.- Returns:
- the long message
-
getSource
Gets the source.- Returns:
- the source
-