Package org.libvirt
Class Error
java.lang.Object
org.libvirt.Error
- All Implemented Interfaces:
 Serializable
An error which is returned from libvirt,
- See Also:
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enum - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetCode()Gets the error codegetConn()Deprecated.getDom()Deprecated.Tells What part of the library raised this errorintgetInt1()intgetInt2()getLevel()Tells how consequent is the errorReturns a human-readable informative error messagegetNet()Deprecated.getStr1()getStr2()getStr3()booleanhasConn()Does this error has a valid Connection object attached? NOTE: deprecated, should return falsebooleanhasDom()Does this error has a valid Domain object attached? NOTE: deprecated, should return falsebooleanhasNet()Does this error has a valid Network object attached? NOTE: deprecated, should return falsetoString() 
- 
Constructor Details
- 
Error
 
 - 
 - 
Method Details
- 
getCode
Gets the error code- Returns:
 - a VirErrorNumber
 
 - 
getConn
Deprecated.returns the Connection associated with the error, if available Deprecated, always throw an exception now- Returns:
 - the Connect object
 - Throws:
 ErrorException
 - 
getDom
Deprecated.returns the Domain associated with the error, if available- Returns:
 - Domain object
 - Throws:
 ErrorException
 - 
getDomain
Tells What part of the library raised this error- Returns:
 - a ErrorDomain
 
 - 
getInt1
public int getInt1()- Returns:
 - extra number information
 
 - 
getInt2
public int getInt2()- Returns:
 - extra number information
 
 - 
getLevel
Tells how consequent is the error- Returns:
 - a ErrorLevel
 
 - 
getMessage
Returns a human-readable informative error message- Returns:
 - error message
 
 - 
getNet
Deprecated.Returns the network associated with the error, if available- Returns:
 - Network object
 - Throws:
 ErrorException
 - 
getStr1
- Returns:
 - extra string information
 
 - 
getStr2
- Returns:
 - extra string information
 
 - 
getStr3
- Returns:
 - extra string information
 
 - 
hasConn
public boolean hasConn()Does this error has a valid Connection object attached? NOTE: deprecated, should return false- Returns:
 - false
 
 - 
hasDom
public boolean hasDom()Does this error has a valid Domain object attached? NOTE: deprecated, should return false- Returns:
 - false
 
 - 
hasNet
public boolean hasNet()Does this error has a valid Network object attached? NOTE: deprecated, should return false- Returns:
 - false
 
 - 
toString
 
 -