net.sf.j2ep.factories
Class MethodNotAllowedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.sf.j2ep.factories.MethodNotAllowedException
All Implemented Interfaces:
java.io.Serializable

public class MethodNotAllowedException
extends java.lang.Exception

An exception thrown when a factory can't handle the incoming method.

Author:
Anders Nyman
See Also:
Serialized Form

Constructor Summary
MethodNotAllowedException(java.lang.String message, java.lang.String allowedMethods)
          Basic constructor creating a exception.
 
Method Summary
 java.lang.String getAllowedMethods()
          Returns which methods that are allowed by the instance throwing this 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodNotAllowedException

public MethodNotAllowedException(java.lang.String message,
                                 java.lang.String allowedMethods)
Basic constructor creating a exception.

Parameters:
message - The exception message
allowedMethods - The allowed methods
Method Detail

getAllowedMethods

public java.lang.String getAllowedMethods()
Returns which methods that are allowed by the instance throwing this exception.

Returns:
The allowed methods