public class AbiquoException extends RuntimeException
Constructor and Description |
---|
AbiquoException(javax.ws.rs.core.Response.Status httpStatus,
com.abiquo.model.transport.error.ErrorsDto errors) |
Modifier and Type | Method and Description |
---|---|
com.abiquo.model.transport.error.ErrorDto |
findError(String code)
Find the first error with the given code.
|
List<com.abiquo.model.transport.error.ErrorDto> |
findErrors(String code)
Find all errors with the given code.
|
List<com.abiquo.model.transport.error.ErrorDto> |
getErrors()
Get the list of all errors.
|
javax.ws.rs.core.Response.Status |
getHttpStatus()
Get the HTTP status.
|
int |
getHttpStatusCode()
Get the HTTP status code.
|
String |
getHttpStatusName()
Get the HTTP status name.
|
String |
getMessage() |
boolean |
hasError(String code)
Check if there is an error with the given code.
|
int |
numErrors()
Get the number of errors.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AbiquoException(javax.ws.rs.core.Response.Status httpStatus, com.abiquo.model.transport.error.ErrorsDto errors)
public boolean hasError(String code)
public com.abiquo.model.transport.error.ErrorDto findError(String code)
public List<com.abiquo.model.transport.error.ErrorDto> findErrors(String code)
public int numErrors()
public List<com.abiquo.model.transport.error.ErrorDto> getErrors()
public int getHttpStatusCode()
public String getHttpStatusName()
public javax.ws.rs.core.Response.Status getHttpStatus()
public String getMessage()
getMessage
in class Throwable
Copyright © 2009-2013 jclouds. All Rights Reserved.