org.greenstone.fedora.services
Class FedoraGS3Exception.NotAFedoraServerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.greenstone.fedora.services.FedoraGS3Exception.NotAFedoraServerException
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
FedoraGS3Exception

public static class FedoraGS3Exception.NotAFedoraServerException
extends java.lang.Exception

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. The IOException message received in such cases is: "Unable to instantiate FedoraConnection java.io.IOException: Request failed [404 /fedora/describe]" And in such cases, we can throw this NotAFedoraServerException to deal with it more particularly than more general IOExceptions.

See Also:
Serialized Form

Field Summary
static java.lang.String MESSAGE
           
 
Constructor Summary
FedoraGS3Exception.NotAFedoraServerException()
           
FedoraGS3Exception.NotAFedoraServerException(java.lang.String message)
           
 
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

MESSAGE

public static final java.lang.String MESSAGE
See Also:
Constant Field Values
Constructor Detail

FedoraGS3Exception.NotAFedoraServerException

public FedoraGS3Exception.NotAFedoraServerException()

FedoraGS3Exception.NotAFedoraServerException

public FedoraGS3Exception.NotAFedoraServerException(java.lang.String message)