com.h3c.util.snmp.command

## Class ThrowableErrorDescriptor<E>

- java.lang.Object
- - com.h3c.util.snmp.command.ThrowableErrorDescriptor<E>

- Type Parameters:
    `E` - Type of the error.
  All Implemented Interfaces:
    Serializable
  Direct Known Subclasses:
    SnmpErrorDescriptor

      public class ThrowableErrorDescriptor<E>
      extends Object
      implements Serializable

  Throwable-error descriptor.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ThrowableErrorDescriptor(E error, Throwable cause)` Creates an error descriptor.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Throwable` | `getCause()` Gets the error cause.
    `E` | `getError()` Gets the error.

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

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

- - ### Constructor Detail

    - #### ThrowableErrorDescriptor

          public ThrowableErrorDescriptor(E error,
                                  Throwable cause)

      Creates an error descriptor.
      Parameters:
        `error` - Error.
        `cause` - Error cause.

  - ### Method Detail

    - #### getError

          public E getError()

      Gets the error.
      Returns:
        the error.

    - #### getCause

          public Throwable getCause()

      Gets the error cause.
      Returns:
        the error cause.

Copyright © 2014. All Rights Reserved.