|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.jickr.FlickrException
public class FlickrException
Generic exception thrown by Jickr objects. This exception is thrown primarily if
an error is returned from Flickr, or Flickr returns unexpected data. Coding errors
typically throw a FlickrRuntimeException
. Please note that this
exception has the notion of an error code, which corresponds to the error code returned
by Flickr on any error.
FlickrRuntimeException
,
Serialized FormConstructor Summary | |
---|---|
FlickrException(java.lang.String msg)
Constructs an instance of FlickrException with the specified
detail message. |
|
FlickrException(java.lang.String msg,
int code)
Constructs an instance of FlickrException with the specified
detail message. |
|
FlickrException(java.lang.String msg,
java.lang.Throwable cause)
Constructs an instance of FlickrException with the specified
detail message, and the root cause exception. |
Method Summary | |
---|---|
int |
getCode()
If the FlickrException is returned because of a Flickr Error, then this code is set to be the same as that returned by Flickr. |
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 |
Constructor Detail |
---|
public FlickrException(java.lang.String msg)
FlickrException
with the specified
detail message.
msg
- the detail message.public FlickrException(java.lang.String msg, int code)
FlickrException
with the specified
detail message.
msg
- the detail message.code
- The error code for the message. This corresponds to the Flickr Error code. See the Flickr API documentation.public FlickrException(java.lang.String msg, java.lang.Throwable cause)
FlickrException
with the specified
detail message, and the root cause exception.
msg
- the detail message.cause
- the root cause of the exceptionMethod Detail |
---|
public int getCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |