public class SubsonicException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
static int |
CLIENT_MUST_UPGRADE
Incompatible Subsonic REST protocol version.
|
static int |
DATA_NOT_FOUND
Requested information not found
|
static int |
GENERIC_ERROR
Generic Subsonic server communication error
|
static int |
MISSING_PARAMETER
Some mandatory parameter is missing
|
static int |
PERMISSION_DENIED
Current user attempted to perform an action for which he has no permission
|
static int |
SERVER_MUST_UPGRADE
Incompatible Subsonic REST protocol version.
|
static int |
TRIAL_PERIOD_OVER
Server trial period has expired
|
static int |
WRONG_USER_OR_PASS
Wrong user or password
|
Constructor and Description |
---|
SubsonicException()
Constructs a new SubsonicException with the
GENERIC_ERROR code |
SubsonicException(int code)
Constructs a new SubsonicException with the specified code
|
SubsonicException(int code,
java.lang.String message)
Constructs a new SubsonicException with the specified code and message
|
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Returns this exception error code
|
java.lang.String |
getMessage()
Returns this exception error message
|
public static final int GENERIC_ERROR
public static final int MISSING_PARAMETER
public static final int CLIENT_MUST_UPGRADE
public static final int SERVER_MUST_UPGRADE
public static final int WRONG_USER_OR_PASS
public static final int PERMISSION_DENIED
public static final int TRIAL_PERIOD_OVER
public static final int DATA_NOT_FOUND
public SubsonicException()
GENERIC_ERROR
codepublic SubsonicException(int code)
code
- Code of the produced exceptionpublic SubsonicException(int code, java.lang.String message)
code
- of the produced exceptionmessage
- Message of the produced exception