Class EnforcerRuleException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.maven.enforcer.rule.api.EnforcerRuleException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
EnforcerRuleError
An exception occurring during the execution of a rule.
Enforcer plugin takes decision based on configuration and Enforcer Rule level
whether build should pass or fail.
- Author:
- Brian Fox
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEnforcerRuleException(Object source, String shortMessage, String longMessage) Deprecated.EnforcerRuleException(String message) Construct a newEnforcerRuleExceptionexception providing amessage.EnforcerRuleException(String message, Exception cause) Construct a newEnforcerRuleExceptionexception wrapping an underlyingExceptionand providing amessage.EnforcerRuleException(String message, Throwable cause) Construct a newEnforcerRuleExceptionexception wrapping an underlyingThrowableand providing amessage.EnforcerRuleException(Throwable cause) Construct a newEnforcerRuleExceptionexception wrapping an underlyingThrowable. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.not usedDeprecated.not usedMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
source
The source. -
longMessage
The long message.
-
-
Constructor Details
-
EnforcerRuleException
Deprecated.sourceandlongMessageare not usedConstruct a newEnforcerRuleExceptionexception providing the source and a short and long message.- Parameters:
source- the sourceshortMessage- the short messagelongMessage- the long message
-
EnforcerRuleException
Construct a newEnforcerRuleExceptionexception wrapping an underlyingExceptionand providing amessage.- Parameters:
message- the messagecause- the cause
-
EnforcerRuleException
Construct a newEnforcerRuleExceptionexception wrapping an underlyingThrowableand providing amessage.- Parameters:
message- the messagecause- the cause
-
EnforcerRuleException
Construct a newEnforcerRuleExceptionexception providing amessage.- Parameters:
message- the message
-
EnforcerRuleException
Construct a newEnforcerRuleExceptionexception wrapping an underlyingThrowable.- Parameters:
cause- the cause
-
-
Method Details
-
getLongMessage
Deprecated.not usedGets the long message.- Returns:
- the long message
-
getSource
Deprecated.not usedGets the source.- Returns:
- the source
-
sourceandlongMessageare not used