lp.wrap
Class WrapperException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by lp.wrap.WrapperException
All Implemented Interfaces:
Serializable

public class WrapperException
extends RuntimeException

An exception thrown by LparseWrapper and SmodelsWrapper when there are problems while invoking an external command with the desired command line options, environment variables and standard input or while reading the standard/error output of the resulting Process instance or waiting for the process to finish execution.

Version:
1.0.0
Author:
Martin Slota
See Also:
Serialized Form

Constructor Summary
WrapperException(String message)
          Constructs a WrapperException with the specified detail message.
WrapperException(String message, Throwable cause)
          Constructs a WrapperException with the specified detail message and cause.
WrapperException(Throwable cause)
          Constructs a WrapperException with the specified cause and a detail message of {@code (cause==null ?
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WrapperException

public WrapperException(String message)
Constructs a WrapperException with the specified detail message.

Parameters:
message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method)

WrapperException

public WrapperException(String message,
                        Throwable cause)
Constructs a WrapperException with the specified detail message and cause. Note that the detail message associated with cause is not automatically incorporated into this exception's detail message.

Parameters:
message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method)
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

WrapperException

public WrapperException(Throwable cause)
Constructs a WrapperException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for wrapper exceptions that are little more than wrappers for other throwables.

Parameters:
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)