Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.tuneology.avm
Class ProcessException  view ProcessException download ProcessException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended bycom.tuneology.avm.ProcessException
All Implemented Interfaces:
java.io.Serializable

public class ProcessException
extends java.io.IOException

An exception for handling errors from external programs. The error output contains raw SCSI info and so forth, and as such it needs some skill to parse correctly so we try to pick out a nice error message. The entire original output is available via getExtendedError().

Version:
$Id: ProcessException.java,v 1.1 2002/09/23 05:03:11 xnarf Exp $

Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
private  java.lang.String extendedError
           
 
Fields inherited from class java.io.IOException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
ProcessException(java.lang.String err)
           
ProcessException(java.lang.String errMsg, java.lang.String err)
           
 
Method Summary
private static java.lang.String extractErrorMessage(java.lang.String err)
          Figure out a nice error message from all those SCSI errors and so forth.
 java.lang.String getExtendedError()
           
 
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
 

Field Detail

extendedError

private java.lang.String extendedError
Constructor Detail

ProcessException

public ProcessException(java.lang.String err)

ProcessException

public ProcessException(java.lang.String errMsg,
                        java.lang.String err)
Method Detail

getExtendedError

public java.lang.String getExtendedError()

extractErrorMessage

private static java.lang.String extractErrorMessage(java.lang.String err)
Figure out a nice error message from all those SCSI errors and so forth.