com.h3c.util

## Interface ErrorHandler<S,E>

- Type Parameters:
    `S` - type of the source where the error was generated.
    `E` - type of the error descriptor.

      public interface ErrorHandler<S,E>

  Interface to delegate error handling.

  Note: You generally don't catch Throwable. Throwable is the superclass to Exception and Error. Errors are generally things which a normal application wouldn't and shouldn't catch, so just use Exception unless you have a specific reason to use Throwable.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `errorOccurred(S source, E error)` Method called to delegate error handling.

- - ### Method Detail

    - #### errorOccurred

          void errorOccurred(S source,
                           E error)

      Method called to delegate error handling.
      Parameters:
        `source` - source where the error was generated.
        `error` - error.

Copyright © 2014. All Rights Reserved.