edu.ntnu.item.jt.VMware.errors
Class VMWareException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by edu.ntnu.item.jt.VMware.errors.VMWareException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConnectionFailedException, CreateSnapshotException, DirectoryCreationException, FileCopyException, FileExecutionException, LoginFailureException, NoSnapshotLoadedException, OpenVMException, PowerOffFailureException, PowerUpFailureException, RevertToSnapshotFailedException

public abstract class VMWareException
extends Exception

A generic representation of a VMware Vix related exception. Stores an error text and error code provided by Vix.

Author:
Jøran Vagnby Lillesand
See Also:
Serialized Form

Constructor Summary
VMWareException(String reason, long errCode)
           
 
Method Summary
 long getErrCode()
          Getter for the Vix error code.
 
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

VMWareException

public VMWareException(String reason,
                       long errCode)
Method Detail

getErrCode

public long getErrCode()
Getter for the Vix error code.

Returns:
error code supplied by Vix.