org.kie.services.remote.rest.exception
Class RestOperationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.kie.services.remote.rest.exception.RestOperationException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- DeploymentNotFoundException
public class RestOperationException
- extends RuntimeException
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
status
protected Integer status
RestOperationException
public RestOperationException(String s)
RestOperationException
protected RestOperationException(String s,
RestOperationException.Status status)
RestOperationException
public RestOperationException(String s,
Throwable throwable)
RestOperationException
protected RestOperationException(String s,
Throwable throwable,
RestOperationException.Status status)
getStatus
public int getStatus()
badRequest
public static RestOperationException badRequest(String msg)
forbidden
public static RestOperationException forbidden(String msg)
conflict
public static RestOperationException conflict(String msg,
Exception e)
notFound
public static RestOperationException notFound(String msg)
internalServerError
public static RestOperationException internalServerError(String msg)
internalServerError
public static RestOperationException internalServerError(String msg,
Exception e)
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.