Class ExpectedRestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.activiti.cloud.acc.shared.serenity.exception.ExpectedException
-
- org.activiti.cloud.acc.shared.rest.error.ExpectedRestException
-
- All Implemented Interfaces:
Serializable
public class ExpectedRestException extends ExpectedException
Expected rest exception- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExpectedRestException(int statusCode, String errorMessage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetStatusCode()booleanisExpectedException(Throwable throwable)StringtoString()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
ExpectedRestException
public ExpectedRestException(int statusCode, String errorMessage)
-
-
Method Detail
-
getStatusCode
public int getStatusCode()
-
isExpectedException
public boolean isExpectedException(Throwable throwable)
- Overrides:
isExpectedExceptionin classExpectedException
-
-