Documentation
¶
Index ¶
- func New(message string, options ...Option) error
- func Wrap(err error) error
- type Error
- func (err *Error) Error() string
- func (err *Error) ErrorParams() core.Map
- func (err *Error) Source() string
- func (err *Error) Stack() []Frame
- func (err *Error) StackTrace() string
- func (err *Error) Unwrap() error
- func (err *Error) WithCode(code string) *Error
- func (err *Error) WithParams(params Map) *Error
- type Frame
- type Map
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct {
Code string
Message string
Params Map
Cause error
// contains filtered or unexported fields
}
Error is Runa's framework/business error.
func (*Error) ErrorParams ¶
ErrorParams returns translation/rendering parameters.
func (*Error) StackTrace ¶
StackTrace returns captured source frames formatted as text.
func (*Error) WithParams ¶
WithParams sets business error parameters.
Click to show internal directories.
Click to hide internal directories.