org.odata4j.exceptions
Class MethodNotAllowedException.Factory
java.lang.Object
org.odata4j.exceptions.MethodNotAllowedException.Factory
- All Implemented Interfaces:
- ExceptionFactory<MethodNotAllowedException>
- Enclosing class:
- MethodNotAllowedException
public static class MethodNotAllowedException.Factory
- extends Object
- implements ExceptionFactory<MethodNotAllowedException>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodNotAllowedException.Factory
public MethodNotAllowedException.Factory()
createException
public MethodNotAllowedException createException(OError error)
- Description copied from interface:
ExceptionFactory
- Creates an instance of a specific sub-class of
ODataProducerException
.
- Specified by:
createException
in interface ExceptionFactory<MethodNotAllowedException>
- Parameters:
error
- the OData error message to be wrapped into the returned exception
- Returns:
- the exception instance
getStatusCode
public int getStatusCode()
- Description copied from interface:
ExceptionFactory
- Gets the status code this factory creates exception instances for.
- Specified by:
getStatusCode
in interface ExceptionFactory<MethodNotAllowedException>
- Returns:
- the status code
http://odata4j.org