Class OperationFailedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.opendaylight.yangtools.yang.common.OperationFailedException
All Implemented Interfaces:
Serializable

public class OperationFailedException extends Exception
A general base exception for an operation failure.
Author:
Thomas Pantelis
See Also:
  • Constructor Details

    • OperationFailedException

      public OperationFailedException(String message, Throwable cause)
      Constructs a new instance with the specified detail message and cause.
      Parameters:
      message - the detail message
      cause - the cause
      Throws:
      NullPointerException - if message is null
    • OperationFailedException

      public OperationFailedException(String message, RpcError error)
      Constructs a new instance with the specified detail message and error.
      Parameters:
      message - the detail message
      error - RpcError instance that provides additional error information about this exception
      Throws:
      NullPointerException - if any argument is null
    • OperationFailedException

      public OperationFailedException(String message, Throwable cause, Collection<RpcError> errors)
      Constructs a new instance with the specified detail message, cause and errors.
      Parameters:
      message - the detail message
      cause - the cause
      errors - RpcError instances that provide additional error information about this exception
      Throws:
      NullPointerException - if either message or errors is null, or if errors contains a null element.
    • OperationFailedException

      public OperationFailedException(String message, Collection<? extends RpcError> errors)
      Constructs a new instance with the specified detail message and errors.
      Parameters:
      message - the detail message
      errors - RpcError instances that provide additional error information about this exception
      Throws:
      NullPointerException - if any argument is, or errors contains, null
    • OperationFailedException

      public OperationFailedException(String message, RpcError... errors)
      Constructs a new instance with the specified detail message and errors.
      Parameters:
      message - the detail message
      errors - RpcError instances that provide additional error information about this exception
      Throws:
      NullPointerException - if any argument is, or errors contains, null
    • OperationFailedException

      public OperationFailedException(String message, Throwable cause, RpcError... errors)
      Constructs a new instance with the specified detail message, cause and errors.
      Parameters:
      message - the detail message
      cause - the cause
      errors - RpcError instances that provide additional error information about this exception
  • Method Details