Documentation
¶
Index ¶
Constants ¶
View Source
const ErrNotFound errors.String = "not found"
internal special error
Variables ¶
View Source
var NoErrorReturning201 = nvelope.ReturnCode(errors.String(""), 201)
fake error to write status code
Functions ¶
func NewBadRequestSCIMErr ¶
func NewBadRequestSCIMErr(t SCIMErrorType, e error) error
NewBadRequestSCIMErr returns SCIMErr with SCIMErrorType and fixed bad request status code https://datatracker.ietf.org/doc/html/rfc7644#section-3.12
func NewSCIMErr ¶
Types ¶
type SCIMError ¶
type SCIMError struct {
Detail error `json:"detail"`
Status int `json:"status"`
// contains filtered or unexported fields
}
func (SCIMError) MarshalSCIM ¶
type SCIMErrorType ¶
type SCIMErrorType string
all SCIMErrorType is 404
const ( InvalidFilter SCIMErrorType = "invalidFilter" TooMany SCIMErrorType = "tooMany" UniquenessError SCIMErrorType = "uniqueness" MutabilityError SCIMErrorType = "mutability" InvalidSyntax SCIMErrorType = "invalidSyntax" InvalidPath SCIMErrorType = "invalidPath" NoTarget SCIMErrorType = "noTarget" InvalidValue SCIMErrorType = "invalidValue" InvalidVers SCIMErrorType = "invalidVers" Sensitive SCIMErrorType = "sensitive" )
Click to show internal directories.
Click to hide internal directories.