1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

F #3149: API error codes missed in GOCA (#3150)

This commit is contained in:
Christian González 2019-04-01 09:40:16 +02:00 committed by Ruben S. Montero
parent 26d75e28a5
commit 49998530c6

View File

@ -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 ""
}