KIE Remote Services :: Services 6.1.0.Beta1

org.kie.services.remote.rest.exception
Class RestOperationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.kie.services.remote.rest.exception.RestOperationException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DeploymentNotFoundException

public class RestOperationException
extends RuntimeException

See Also:
Serialized Form

Nested Class Summary
static class RestOperationException.Status
           
 
Field Summary
protected  Integer status
           
 
Constructor Summary
  RestOperationException(String s)
           
protected RestOperationException(String s, RestOperationException.Status status)
           
  RestOperationException(String s, Throwable throwable)
           
protected RestOperationException(String s, Throwable throwable, RestOperationException.Status status)
           
 
Method Summary
static RestOperationException badRequest(String msg)
           
static RestOperationException conflict(String msg, Exception e)
           
static RestOperationException forbidden(String msg)
           
 int getStatus()
           
static RestOperationException internalServerError(String msg)
           
static RestOperationException internalServerError(String msg, Exception e)
           
static RestOperationException notFound(String msg)
           
 
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

status

protected Integer status
Constructor Detail

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)
Method Detail

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)

KIE Remote Services :: Services 6.1.0.Beta1

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.