Class EnforcerRuleException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.maven.enforcer.rule.api.EnforcerRuleException
-
- All Implemented Interfaces:
java.io.Serializable
public class EnforcerRuleException extends java.lang.ExceptionAn exception occurring during the execution of a rule. Based off of EnforcerRuleException, but separated to keep the rule dependencies to a minimum.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringlongMessageThe long message.private static longserialVersionUIDserialVersionUID.protected java.lang.ObjectsourceThe source.
-
Constructor Summary
Constructors Constructor Description EnforcerRuleException(java.lang.Object source, java.lang.String shortMessage, java.lang.String longMessage)Construct a newEnforcerRuleExceptionexception providing the source and a short and long message.EnforcerRuleException(java.lang.String message)Construct a newEnforcerRuleExceptionexception providing amessage.EnforcerRuleException(java.lang.String message, java.lang.Exception cause)Construct a newEnforcerRuleExceptionexception wrapping an underlyingExceptionand providing amessage.EnforcerRuleException(java.lang.String message, java.lang.Throwable cause)Construct a newEnforcerRuleExceptionexception wrapping an underlyingThrowableand providing amessage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetLongMessage()Gets the long message.java.lang.ObjectgetSource()Gets the source.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
serialVersionUID.- See Also:
- Constant Field Values
-
source
protected java.lang.Object source
The source.
-
longMessage
protected java.lang.String longMessage
The long message.
-
-
Constructor Detail
-
EnforcerRuleException
public EnforcerRuleException(java.lang.Object source, java.lang.String shortMessage, java.lang.String longMessage)Construct a newEnforcerRuleExceptionexception providing the source and a short and long message.- Parameters:
source- the sourceshortMessage- the short messagelongMessage- the long message
-
EnforcerRuleException
public EnforcerRuleException(java.lang.String message, java.lang.Exception cause)Construct a newEnforcerRuleExceptionexception wrapping an underlyingExceptionand providing amessage.- Parameters:
message- the messagecause- the cause
-
EnforcerRuleException
public EnforcerRuleException(java.lang.String message, java.lang.Throwable cause)Construct a newEnforcerRuleExceptionexception wrapping an underlyingThrowableand providing amessage.- Parameters:
message- the messagecause- the cause
-
EnforcerRuleException
public EnforcerRuleException(java.lang.String message)
Construct a newEnforcerRuleExceptionexception providing amessage.- Parameters:
message- the message
-
-