public class APIException
extends javax.ws.rs.WebApplicationException
Constructor and Description |
---|
APIException(APIError.Type type,
String message)
Creates a new APIException with the given type and message.
|
APIException(APIError.Type type,
String message,
Collection<Field> expected)
Creates a new APIException with the given type, message, and parameter
information.
|
APIException(APIError error)
Construct a new APIException with the given error.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public APIException(APIError error)
error
- The error that occurred.public APIException(APIError.Type type, String message)
type
- The type of error that occurred.message
- A human-readable message describing the error.public APIException(APIError.Type type, String message, Collection<Field> expected)
type
- The type of error that occurred.message
- A human-readable message describing the error.expected
- All parameters expected in the original request, or now required as
a result of the original request, as a collection of fields.Copyright © 2015. All rights reserved.