|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.sling.api.SlingException
org.apache.sling.jcr.resource.internal.helper.URIException
public class URIException
The URI parsing and escape encoding exception.
This class is a slightly modified version of the URIException class
distributed with Http Client 3.1. The changes are removal of deprecated
methods and have the class itself extend the SlingException
to
adapt it to the exception hierarchy of Sling.
Field Summary | |
---|---|
static int |
ESCAPING
The URI escape encoding and decoding error. |
static int |
PARSING
The URI parsing error. |
static int |
PUNYCODE
The DNS punycode encoding or decoding error. |
protected String |
reason
The reason message. |
protected int |
reasonCode
The reason code. |
static int |
UNKNOWN
No specified reason code. |
static int |
UNSUPPORTED_ENCODING
The unsupported character encoding. |
Constructor Summary | |
---|---|
URIException()
Default constructor. |
|
URIException(int reasonCode)
The constructor with a reason code argument. |
|
URIException(int reasonCode,
String reason)
The constructor with a reason string and its code arguments. |
|
URIException(String reason)
The constructor with a reason string argument. |
Method Summary | |
---|---|
int |
getReasonCode()
Get the reason code. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int UNKNOWN
public static final int PARSING
public static final int UNSUPPORTED_ENCODING
public static final int ESCAPING
public static final int PUNYCODE
protected int reasonCode
protected String reason
Constructor Detail |
---|
public URIException()
public URIException(int reasonCode)
reasonCode
- the reason codepublic URIException(int reasonCode, String reason)
reasonCode
- the reason codereason
- the reasonpublic URIException(String reason)
reason
- the reasonMethod Detail |
---|
public int getReasonCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |