org.libvirt

Class Error

public class Error extends Object implements Serializable

An error which is returned from libvirt,
Nested Class Summary
static classError.ErrorDomain
static classError.ErrorLevel
static classError.ErrorNumber
Constructor Summary
Error()
Error(virError vError)
Method Summary
Error.ErrorNumbergetCode()
Gets he error code
Error.ErrorDomaingetDomain()
Tells What part of the library raised this error
intgetInt1()
intgetInt2()
Error.ErrorLevelgetLevel()
Tells how consequent is the error
StringgetMessage()
Returns human-readable informative error messag
StringgetStr1()
StringgetStr2()
StringgetStr3()
booleanhasConn()
Does this error has a valid Connection object attached?
booleanhasDom()
Does this error has a valid Domain object attached?
booleanhasNet()
Does this error has a valid Network object attached?

Constructor Detail

Error

public Error()

Error

public Error(virError vError)

Method Detail

getCode

public Error.ErrorNumber getCode()
Gets he error code

Returns: a VirErroNumber

getDomain

public Error.ErrorDomain 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

public Error.ErrorLevel getLevel()
Tells how consequent is the error

Returns: a ErrorLevel

getMessage

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

Returns: error message

getStr1

public String getStr1()

Returns: extra string information

getStr2

public String getStr2()

Returns: extra string information

getStr3

public String 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