|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception org.greenstone.fedora.services.FedoraGS3Exception
public class FedoraGS3Exception
The exceptions that can be thrown by FedoraGS3. This class represents a general FedoraGS3 exception. It will LOG the exceptions for all the (static inner) subclasses. And, through the Cause object, also for the static inner Exception classes that do not inherit but are encapsulated in subclass FedoraGS3RunException when its constructor is called with the particular Exception type. The 'Cause' Exception classes therefore indicate the root causes for why a FedoraGS3RunException was thrown.
Nested Class Summary | |
---|---|
static class |
FedoraGS3Exception.AuthenticationFailedException
This AuthenticationFailedException can be thrown when the user enters an invalid username and password into the FedoraConnection Authentication popup dialog (displayed upon FedoraConnection object construction). |
static class |
FedoraGS3Exception.CancelledException
When the user chooses to cancel out of the FedoraConnection dialog of the constructor (where they have to enter authentication information), this exception is thrown, so that classes making use of FedoraConnection may choose whether to exit their program or deal with it differently. |
static class |
FedoraGS3Exception.FedoraGS3InitFailureException
Static inner class FedoraGS3InitFailureException is an Exception that is thrown when no connection can be made to the Fedora server and therefore the FedoraGS3 object construction failed. |
static class |
FedoraGS3Exception.FedoraGS3RunException
Represents an exception that occurs when FedoraGS3 is running A subclass of FedoraGS3Exception |
static class |
FedoraGS3Exception.FedoraVersionNotSupportedException
Certain functionality in Fedora - in particular fielded search - is implemented differently or uses slightly different Fedora types in older versions of Fedora (fielded search in 2.0 uses a different Condition class). |
static class |
FedoraGS3Exception.NotAFedoraServerException
This AuthenticationFailedException can be thrown when there is some server listening at the host and port values entered by the user, but when this server is (most likely) not a Fedora Server. |
static class |
FedoraGS3Exception.ServerNotFoundException
This ServerNotFoundException can be thrown when the user enters there is no (Fedora) server listening at a given host and port. |
Field Summary | |
---|---|
static java.lang.String |
connectionRefusedMessage
Constant string message to display when a connection is refused |
static java.lang.String |
missingTargetService
Constant string message to check against if "AXIS engine could not find a target service to invoke" message is the cause for an AxisFault exception embedded in a RemoteException |
static java.lang.String |
sslHandshakeExceptionMessage
Constant string message to display if the sslHandshake fails when trying to connect to Fedora using https |
Constructor Summary | |
---|---|
FedoraGS3Exception()
No argument constructor merely sets the message to this class' name. |
|
FedoraGS3Exception(java.lang.String message)
Constructs a FedoraGS3Exception with the given message. |
|
FedoraGS3Exception(java.lang.String message,
java.lang.Throwable cause)
Constructs a FedoraGS3Exception with the given message and cause. |
|
FedoraGS3Exception(java.lang.Throwable cause)
Constructs a FedoraGS3Exception with the given cause. |
Method Summary |
---|
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 java.lang.String connectionRefusedMessage
public static final java.lang.String sslHandshakeExceptionMessage
public static final java.lang.String missingTargetService
Constructor Detail |
---|
public FedoraGS3Exception()
public FedoraGS3Exception(java.lang.String message)
message
- is an information String of what went wrong.public FedoraGS3Exception(java.lang.String message, java.lang.Throwable cause)
message
- is an information String of what went wrong.cause
- is a Throwable object (perhaps another Exception)
of what caused this exception to occur.public FedoraGS3Exception(java.lang.Throwable cause)
cause
- is a Throwable object (perhaps another Exception)
of what caused this exception to occur.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |