Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorCode ¶
type ErrorCode string
ErrorCode is data type of error codes for different kind of errors
const ( ConfigError ErrorCode = "SPDL-0001" ServerError ErrorCode = "SPDL-0002" LoggingError ErrorCode = "SPDL-0003" InvalidRequest ErrorCode = "SPDL-0004" )
For common components
const ( StoreError ErrorCode = "SPDL-1001" EntityNotFound ErrorCode = "SPDL-1002" EntityAlreadyExists ErrorCode = "SPDL-1003" ExceedLimit ErrorCode = "SPDL-1004" SerializationError ErrorCode = "SPDL-1005" )
For policy management errors
const ( EvalEngineError ErrorCode = "SPDL-2001" EvalCacheError ErrorCode = "SPDL-2002" BuiltInFuncError ErrorCode = "SPDL-2003" CustomerFuncError ErrorCode = "SPDL-2004" DiscoverError ErrorCode = "SPDL-2005" )
For evaluator errors
const UnknownError ErrorCode = "SPDL-0000"
UnknownError is the unknown error
Click to show internal directories.
Click to hide internal directories.