Documentation ¶
Index ¶
- Variables
- func BadRequestError(printer *message.Printer) (msg string)
- func FormExpiredError(printer *message.Printer) (msg string)
- func IncompleteFormError(printer *message.Printer) (msg string)
- func IncompleteLinkError(printer *message.Printer) (msg string)
- func Must(err error)
- func OtpChallengeFailed(printer *message.Printer) (msg string)
- func ParseJsonError(e error, content string) (err error)
- func ParseTemplateError(message, content string) (err error)
- func PermissionDeniedError(printer *message.Printer) (msg string)
- func UnexpectedError(printer *message.Printer) (msg string)
- func UserNotFound(printer *message.Printer) (msg string)
- type EnjinError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RxTemplateParseError = regexp.MustCompile(`template: ([^:]+?):(\d+):\s*(.+?)\s*$`) RxTemplateExecError = regexp.MustCompile(`template: ([^:]+?):(\d+):(\d+):\s*executing\s*"[^"]+?"\s*at\s*<[^>]+?>:\s*(.+?)\s*$`) )
View Source
var ( ErrNotImplemented = errors.New("not implemented") ErrSignalStopped = errors.New("signal stopped action") ErrNothingToDo = errors.New("nothing to do") ErrPermissionDenied = errors.New("permission denied") ErrBadCookie = errors.New("bad cookie") ErrBadRequest = errors.New("bad request") ErrExistsAlready = errors.New("exists already") ErrDirNotFound = errors.New("directory not found") ErrFileNotFound = errors.New("file not found") ErrUserNotFound = errors.New("user not found") ErrGroupNotFound = errors.New("group not found") ErrTokenNotFound = errors.New("token not found") ErrSecretNotFound = errors.New("secret not found") ErrProviderNotFound = errors.New("provider not found") ErrAudienceNotFound = errors.New("audience not found") ErrFileSystemLockTimeout = errors.New("filesystem lock request timed out") ErrSuspiciousPanic = errors.New("suspicious activity or possible programmer error") ErrDataTypeNotSupported = errors.New("data type not supported") )
Functions ¶
func BadRequestError ¶ added in v0.5.0
func FormExpiredError ¶ added in v0.5.0
func IncompleteFormError ¶ added in v0.5.0
func IncompleteLinkError ¶ added in v0.5.0
func OtpChallengeFailed ¶ added in v0.5.0
func ParseJsonError ¶ added in v0.5.0
func ParseTemplateError ¶ added in v0.5.0
func PermissionDeniedError ¶ added in v0.5.0
func UnexpectedError ¶ added in v0.5.0
func UserNotFound ¶ added in v0.5.0
Types ¶
type EnjinError ¶
func NewEnjinError ¶
func NewEnjinError(title, summary, content string) *EnjinError
func NewEnjinOffsetError ¶ added in v0.5.0
func NewEnjinOffsetError(title, err, content string, offset int64) (ee *EnjinError)
func NewEnjinOffsetRangeError ¶ added in v0.5.0
func NewEnjinOffsetRangeError(title, err, content string, offset, end int64) (ee *EnjinError)
func (*EnjinError) Error ¶
func (e *EnjinError) Error() (message string)
func (*EnjinError) Html ¶
func (e *EnjinError) Html() (markup template.HTML)
func (*EnjinError) NjnData ¶
func (e *EnjinError) NjnData() (data map[string]interface{})
Click to show internal directories.
Click to hide internal directories.