org.libvirt
Class VirError

java.lang.Object
  extended by org.libvirt.VirError

public class VirError
extends java.lang.Object


Nested Class Summary
static class VirError.VirErrorDomain
           
static class VirError.VirErrorLevel
           
static class VirError.VirErrorNumber
           
 
Constructor Summary
VirError()
           
 
Method Summary
 VirError.VirErrorNumber getCode()
          Gets he error code
 VirConnect getConn()
          returns the Connection associated with the error, if available Deprecated, always throw an exception now
 VirDomain getDom()
          returns the Domain associated with the error, if available
 VirError.VirErrorDomain getDomain()
          Tells What part of the library raised this error
 int getInt1()
           
 int getInt2()
           
 VirError.VirErrorLevel getLevel()
          Tells how consequent is the error
 java.lang.String getMessage()
          Returns human-readable informative error messag
 VirNetwork getNet()
          Returns the network associated with the error, if available
 java.lang.String getStr1()
           
 java.lang.String getStr2()
           
 java.lang.String getStr3()
           
 boolean hasConn()
          Does this error has a valid Connection object attached? NOTE: deprecated, should return false
 boolean hasDom()
          Does this error has a valid VirDomain object attached? NOTE: deprecated, should return false
 boolean hasNet()
          Does this error has a valid VirNetwork object attached? NOTE: deprecated, should return false
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VirError

public VirError()
Method Detail

getCode

public VirError.VirErrorNumber getCode()
Gets he error code

Returns:
a VirErroNumber

getDomain

public VirError.VirErrorDomain getDomain()
Tells What part of the library raised this error

Returns:
a VirErrorDomain

getMessage

public java.lang.String getMessage()
Returns human-readable informative error messag

Returns:
error message

getLevel

public VirError.VirErrorLevel getLevel()
Tells how consequent is the error

Returns:
a VirErrorLevel

getStr1

public java.lang.String getStr1()
Returns:
extra string information

getStr2

public java.lang.String getStr2()
Returns:
extra string information

getStr3

public java.lang.String getStr3()
Returns:
extra string information

getInt1

public int getInt1()
Returns:
extra number information

getInt2

public int getInt2()
Returns:
extra number information

hasConn

public boolean hasConn()
Does this error has a valid Connection object attached? NOTE: deprecated, should return false

Returns:
false

getConn

public VirConnect getConn()
                   throws VirErrorException
returns the Connection associated with the error, if available Deprecated, always throw an exception now

Returns:
the VirConnect object
Throws:
VirErrorException

hasDom

public boolean hasDom()
Does this error has a valid VirDomain object attached? NOTE: deprecated, should return false

Returns:
false

getDom

public VirDomain getDom()
                 throws VirErrorException
returns the Domain associated with the error, if available

Returns:
VirDomain object
Throws:
VirErrorException

hasNet

public boolean hasNet()
Does this error has a valid VirNetwork object attached? NOTE: deprecated, should return false

Returns:
false

getNet

public VirNetwork getNet()
                  throws VirErrorException
Returns the network associated with the error, if available

Returns:
VirNetwork object
Throws:
VirErrorException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object