Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToError ¶
func ConvertToError(r interface{}) error
ConvertToError converts recovered type to error
func NewDoubleSubErr ¶
func NewNotImplemented ¶
func NewNotImplemented() error
NewNotImplemented auxiliary - to mark not implemented
func NewUnexpectedError ¶
Types ¶
type DoubleSubErr ¶
type DoubleSubErr struct {
// contains filtered or unexported fields
}
DoubleSubErr happens when multiple subscriptions not available, but called
func (DoubleSubErr) Error ¶
func (msg DoubleSubErr) Error() string
type NoAccessErr ¶
type NoAccessErr struct {
// contains filtered or unexported fields
}
NoAccessErr happens when not enough access rights to account provided by token
func NewNoAccess ¶
func NewNoAccess(msg string) NoAccessErr
func (NoAccessErr) Error ¶
func (err NoAccessErr) Error() string
type NotFoundErr ¶
type NotFoundErr struct {
// contains filtered or unexported fields
}
NotFoundErr happens when some resources not found
func NewNotFound ¶
func NewNotFound(msg string) NotFoundErr
func (NotFoundErr) Error ¶
func (err NotFoundErr) Error() string
type WrongAccStateErr ¶
type WrongAccStateErr struct {
// contains filtered or unexported fields
}
WrongAccStateErr happens when account in wrong state
func NewWrongAccState ¶
func NewWrongAccState(msg string) WrongAccStateErr
func (WrongAccStateErr) Error ¶
func (err WrongAccStateErr) Error() string
Click to show internal directories.
Click to hide internal directories.