mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
parent
26d75e28a5
commit
49998530c6
@ -135,6 +135,12 @@ const (
|
||||
|
||||
// OneInternalError code if there is an internal error, e.g. the resource could not be loaded from the DB
|
||||
OneInternalError = 0x2000
|
||||
|
||||
// OneAllocateError code if a resource cannot be allocated
|
||||
OneAllocateError = 0x4000
|
||||
|
||||
// OneLockedError code if the resource is locked
|
||||
OneLockedError = 0x8000
|
||||
)
|
||||
|
||||
func (s OneErrCode) String() string {
|
||||
@ -153,6 +159,10 @@ func (s OneErrCode) String() string {
|
||||
return "XML_RPC_API"
|
||||
case OneInternalError:
|
||||
return "INTERNAL"
|
||||
case OneAllocateError:
|
||||
return "ALLOCATE"
|
||||
case OneLockedError:
|
||||
return "LOCKED"
|
||||
default:
|
||||
return ""
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user