org.ogf.saga.error
Class SagaIOException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.ogf.saga.error.SagaException
              extended by org.ogf.saga.error.SagaIOException
All Implemented Interfaces:
Serializable, Comparable<SagaException>, Iterable<SagaException>

public class SagaIOException
extends SagaException

This exception is specific to the Java Language Bindings for SAGA, which uses this exception for some methods, instead of returning POSIX error code.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ogf.saga.error.SagaException
ALREADY_EXISTS, AUTHENTICATION_FAILED, AUTHORIZATION_FAILED, BAD_PARAMETER, DOES_NOT_EXIST, INCORRECT_STATE, INCORRECT_URL, IO_EXCEPTION, NO_SUCCESS, NOT_IMPLEMENTED, PERMISSION_DENIED, TIMEOUT
 
Constructor Summary
SagaIOException()
          Constructs an SagaIO exception.
SagaIOException(String message)
          Constructs an SagaIO exception with the specified detail message.
SagaIOException(String message, int code)
          Constructs an SagaIO exception with the specified detail message and error code,
SagaIOException(String message, SagaObject object)
          Constructs an SagaIO exception with the specified detail message and associated SAGA object.
SagaIOException(String message, Throwable cause)
          Constructs an SagaIO exception with the specified detail message and cause.
SagaIOException(String message, Throwable cause, int code, SagaObject object)
          Constructs an SagaIO exception with the specified detail message.
SagaIOException(String detail, Throwable cause, SagaObject object)
          Constructs a new SagaIOException with the specified detail message, specified cause and associated SAGA object.
SagaIOException(Throwable cause)
          Constructs an SagaIO exception with the specified cause.
SagaIOException(Throwable cause, SagaObject object)
          Constructs a new SagaIOException with the specified cause and associated SAGA object.
 
Method Summary
 int getPosixErrorCode()
          Returns the POSIX error code associated with this exception, in case it is available.
 
Methods inherited from class org.ogf.saga.error.SagaException
addNestedException, compareTo, getAllExceptions, getAllMessages, getObject, iterator, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SagaIOException

public SagaIOException()
Constructs an SagaIO exception.


SagaIOException

public SagaIOException(String message)
Constructs an SagaIO exception with the specified detail message.

Parameters:
message - the detail message.

SagaIOException

public SagaIOException(String message,
                       int code)
Constructs an SagaIO exception with the specified detail message and error code,

Parameters:
message - the detail message.
code - the error code.

SagaIOException

public SagaIOException(Throwable cause)
Constructs an SagaIO exception with the specified cause.

Parameters:
cause - the cause.

SagaIOException

public SagaIOException(String message,
                       Throwable cause)
Constructs an SagaIO exception with the specified detail message and cause.

Parameters:
message - the detail message.
cause - the cause.

SagaIOException

public SagaIOException(String message,
                       SagaObject object)
Constructs an SagaIO exception with the specified detail message and associated SAGA object.

Parameters:
message - the detail message.
object - the associated SAGA object.

SagaIOException

public SagaIOException(Throwable cause,
                       SagaObject object)
Constructs a new SagaIOException with the specified cause and associated SAGA object.

Parameters:
cause - the cause.
object - the SAGA object associated with the exception.

SagaIOException

public SagaIOException(String detail,
                       Throwable cause,
                       SagaObject object)
Constructs a new SagaIOException with the specified detail message, specified cause and associated SAGA object.

Parameters:
detail - the detail message.
cause - the cause.
object - the SAGA object associated with the exception.

SagaIOException

public SagaIOException(String message,
                       Throwable cause,
                       int code,
                       SagaObject object)
Constructs an SagaIO exception with the specified detail message. POSIX error code, and associated SAGA object.

Parameters:
message - the detail message.
code - the error code.
cause - the cause.
object - the associated SAGA object.
Method Detail

getPosixErrorCode

public int getPosixErrorCode()
Returns the POSIX error code associated with this exception, in case it is available. If not, this method returns 0.

Returns:
the error code.


Copyright © 2014 Open Grid Forum. All rights reserved.