TransferOutcome (The Data transfer common objects 2.0.0-3.7.0 API)
Date: 2015-05-19

org.gcube.datatransfer.common.outcome

## Class TransferOutcome

- java.lang.Object
- - org.gcube.datatransfer.common.outcome.TransferOutcome

- All Implemented Interfaces:
    Serializable
  Direct Known Subclasses:
    FileTransferOutcome, TreeTransferOutcome

      public abstract class TransferOutcome
      extends Object
      implements Serializable

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TransferOutcome()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `failure()` Returns the exception raised when unsuccessfully transfer a file.
    `String` | `getException()`
    `boolean` | `isFailure()`
    `boolean` | `isSuccess()`
    `void` | `setException(String exception)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TransferOutcome

          public TransferOutcome()

  - ### Method Detail

    - #### isSuccess

          public boolean isSuccess()

      Returns:
        `true` if the outcome indicates success, `false` otherwise

    - #### isFailure

          public boolean isFailure()

      Returns:
        `true` if the outcome indicates a failure, `false` otherwise

    - #### getException

          public String getException()

    - #### setException

          public void setException(String exception)

    - #### failure

          public String failure()

      Returns the exception raised when unsuccessfully transfer a file.
      Returns:
        the exception, or `null` if the outcome indicates a success

Copyright © 2015. All Rights Reserved.