From 49998530c6ad38a45663ab3ebaadb76f421d7c8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gonz=C3=A1lez?= Date: Mon, 1 Apr 2019 09:40:16 +0200 Subject: [PATCH] F #3149: API error codes missed in GOCA (#3150) --- src/oca/go/src/goca/errors.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/oca/go/src/goca/errors.go b/src/oca/go/src/goca/errors.go index 72de77bb3e..b94353d3ed 100644 --- a/src/oca/go/src/goca/errors.go +++ b/src/oca/go/src/goca/errors.go @@ -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 "" }