org.apache.maven.enforcer.rule.api
Class EnforcerRuleException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.maven.enforcer.rule.api.EnforcerRuleException
All Implemented Interfaces:
java.io.Serializable

public class EnforcerRuleException
extends java.lang.Exception

An exception occurring during the execution of a rule. Based off of EnforcerRuleException, but separated to keep the rule dependencies to a minimum.

Version:
$Id: EnforcerRuleException.java 805162 2009-08-17 21:48:52Z hboutemy $
Author:
Brian Fox
See Also:
Serialized Form

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

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 new EnforcerRuleException exception providing the source and a short and long message.

Parameters:
source - the source
shortMessage - the short message
longMessage - the long message

EnforcerRuleException

public EnforcerRuleException(java.lang.String message,
                             java.lang.Exception cause)
Construct a new EnforcerRuleException exception wrapping an underlying Exception and providing a message.

Parameters:
message - the message
cause - the cause

EnforcerRuleException

public EnforcerRuleException(java.lang.String message,
                             java.lang.Throwable cause)
Construct a new EnforcerRuleException exception wrapping an underlying Throwable and providing a message.

Parameters:
message - the message
cause - the cause

EnforcerRuleException

public EnforcerRuleException(java.lang.String message)
Construct a new EnforcerRuleException exception providing a message.

Parameters:
message - the message
Method Detail

getLongMessage

public java.lang.String getLongMessage()
Gets the long message.

Returns:
the long message

getSource

public java.lang.Object getSource()
Gets the source.

Returns:
the source


Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.