me.mjolnir.mineconomy.exceptions
Class InsufficientFundsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by me.mjolnir.mineconomy.exceptions.InsufficientFundsException
All Implemented Interfaces:
java.io.Serializable, MCException

public class InsufficientFundsException
extends java.lang.RuntimeException
implements MCException

Thrown when an account does not have enough money to take away.

Author:
MjolnirCommando
See Also:
Serialized Form

Constructor Summary
InsufficientFundsException(java.lang.String method, java.lang.String variable)
          Creates new InsufficientFundsException object.
 
Method Summary
 InsufficientFundsException getError()
          Returns the exception.
 java.lang.String getErrorDescription()
          Returns the description of the exception.
 java.lang.String getMethodCause()
          Returns the method that caused the exception.
 java.lang.String getVariableCause()
          Returns the variable that caused the exception.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InsufficientFundsException

public InsufficientFundsException(java.lang.String method,
                                  java.lang.String variable)
Creates new InsufficientFundsException object.

Parameters:
method -
variable -
Method Detail

getMethodCause

public java.lang.String getMethodCause()
Description copied from interface: MCException
Returns the method that caused the exception.

Specified by:
getMethodCause in interface MCException
Returns:
The method that caused the exception.

getVariableCause

public java.lang.String getVariableCause()
Description copied from interface: MCException
Returns the variable that caused the exception.

Specified by:
getVariableCause in interface MCException
Returns:
The variable that caused the exception.

getErrorDescription

public java.lang.String getErrorDescription()
Description copied from interface: MCException
Returns the description of the exception.

Specified by:
getErrorDescription in interface MCException
Returns:
A description of the exception.

getError

public InsufficientFundsException getError()
Description copied from interface: MCException
Returns the exception.

Specified by:
getError in interface MCException
Returns:
Exception