Package com.jquestrade.exceptions
Class StatusCodeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.jquestrade.exceptions.StatusCodeException
- All Implemented Interfaces:
Serializable
Thrown when there is some kind of issue with the API request. Use
getStatusCode()
to get the response status code.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the status code that caused this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
StatusCodeException
-
-
Method Details
-
getStatusCode
public int getStatusCode()Returns the status code that caused this exception.- Returns:
- The status code.
- See Also:
-
- What the status codes mean in terms of the Questrade API. (See the table at the bottom of the page.)
-