Documentation ¶
Index ¶
- Constants
- func Internal(format string, args ...interface{}) error
- func InvalidFilter(format string, args ...interface{}) error
- func InvalidPath(format string, args ...interface{}) error
- func InvalidRequest(format string, args ...interface{}) error
- func InvalidSyntax(format string, args ...interface{}) error
- func InvalidValue(format string, args ...interface{}) error
- func Mutability(format string, args ...interface{}) error
- func NoTarget(format string, args ...interface{}) error
- func NotFound(format string, args ...interface{}) error
- func PreConditionFailed(format string, args ...interface{}) error
- func Sensitive(format string, args ...interface{}) error
- func TooMany(format string, args ...interface{}) error
- func Uniqueness(format string, args ...interface{}) error
- type Error
Constants ¶
const ( TypeInvalidRequest = "invalidRequest" TypeInvalidFilter = "invalidFilter" TypeTooMany = "tooMany" TypeUniqueness = "uniqueness" TypeMutability = "mutability" TypeInvalidSyntax = "invalidSyntax" TypeInvalidPath = "invalidPath" TypeNoTarget = "noTarget" TypeInvalidValue = "invalidValue" TypePreCondition = "preCondition" TypeSensitive = "sensitive" TypeNotFound = "notFound" TypeInternal = "internal" )
Defined error types. Each error type will have a corresponding constructor.
const ( // Schema URN defined for SCIM error messages // https://tools.ietf.org/html/rfc7644#section-3.12 Schema = "urn:ietf:params:scim:api:messages:2.0:Error" )
Variables ¶
This section is empty.
Functions ¶
func Internal ¶
Returns error to describe that server encountered internal error. This should be the returned error when the user input is not at fault.
func InvalidFilter ¶
Returns error to describe that the specified filter syntax was invalid, or the specified attribute and filter comparison combination is not supported.
func InvalidPath ¶
Returns error to describe that the "path" attribute was invalid or malformed.
func InvalidRequest ¶
Returns error to describe that the request is invalid. This is a generic error description, use more specific ones if available.
func InvalidSyntax ¶
Returns error to describe that the request body message structure was invalid or did not conform to the request schema.
func InvalidValue ¶
Returns error to describe that a required value was missing, or the value specified was not compatible with the operation or attribute type.
func Mutability ¶
Returns error to describe that the attempted modification is not compatible with the target attribute's mutability or current state (e.g., modification of an "immutable" attribute with an existing value).
func NoTarget ¶
Returns error to describe that the specified "path" did not yield an attribute or attribute value that could be operated on. This occurs when the specified "path" value contains a filter that yields no match.
func PreConditionFailed ¶
Returns error to describe that the specified precondition failed and request cannot proceed.
func Sensitive ¶
Returns error to describe that the specified request cannot be completed, due to the passing of sensitive (e.g., personal) information in a request URI.
func TooMany ¶
Returns error to describe that the specified filter yields many more results than the server is willing to calculate or process.
func Uniqueness ¶
Returns error to describe that one or more of the attribute values are already in use or are reserved.
Types ¶
type Error ¶
A SCIM error message. It is recommended to not directly create this structure, but to use constructors defined in factory.
func (Error) MarshalJSON ¶
Marshal SCIM error message to JSON