Package com.algorithmia
Class APIException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- com.algorithmia.APIException
-
- All Implemented Interfaces:
java.io.Serializable
public class APIException extends java.io.IOExceptionAPIException indicates a problem communicating with Algorithmia- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description APIException(java.lang.String message)Constructs a new API exception with the specified detail message, no stack trace.APIException(java.lang.String message, java.lang.Throwable cause)Constructs a new API exception with the specified detail message and cause.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static APIExceptionfromHttpResponse(org.apache.http.HttpResponse response)
-
-
-
Constructor Detail
-
APIException
public APIException(java.lang.String message)
Constructs a new API exception with the specified detail message, no stack trace.- Parameters:
message- the detail message
-
APIException
public APIException(java.lang.String message, java.lang.Throwable cause)Constructs a new API exception with the specified detail message and cause.- Parameters:
message- the detail messagecause- the cause of the AlgorithmException
-
-
Method Detail
-
fromHttpResponse
public static APIException fromHttpResponse(org.apache.http.HttpResponse response)
-
-