stytcherror

package
v15.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrJWKSNotInitialized = errors.New("JWKS not initialized")

Functions

func NewClientLibraryError

func NewClientLibraryError(message string) error

func NewM2MPermissionError

func NewM2MPermissionError() error

func NewPermissionError

func NewPermissionError() error

func NewSessionAuthorizationTenancyError

func NewSessionAuthorizationTenancyError(subjectOrgID string, requestOrgID string) error

Types

type Error

type Error struct {
	StatusCode   int     `json:"status_code,omitempty"`
	RequestID    string  `json:"request_id,omitempty"`
	ErrorType    Type    `json:"error_type,omitempty"`
	ErrorMessage Message `json:"error_message,omitempty"`
	ErrorURL     URL     `json:"error_url,omitempty"`
}

func (Error) Error

func (e Error) Error() string

type Message

type Message string

type OAuth2Error

type OAuth2Error struct {
	StatusCode   int     `json:"status_code,omitempty"`
	RequestID    string  `json:"request_id,omitempty"`
	ErrorType    Type    `json:"error,omitempty"`
	ErrorMessage Message `json:"error_description,omitempty"`
	ErrorURL     URL     `json:"error_uri,omitempty"`
}

func (OAuth2Error) Error

func (e OAuth2Error) Error() string

type Type

type Type string

type URL

type URL string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL