Documentation ¶
Index ¶
- func IsFatal(err ActorError) bool
- func RetCode(err ActorError) uint8
- type ActorError
- func Absorb(err error, retCode uint8, msg string) ActorError
- func Escalate(err error, msg string) ActorError
- func Fatal(message string, args ...interface{}) ActorError
- func Fatalf(format string, args ...interface{}) ActorError
- func HandleExternalError(err error, msg string) ActorError
- func New(retCode uint8, message string) ActorError
- func Newf(retCode uint8, format string, args ...interface{}) ActorError
- func Wrap(err ActorError, message string) ActorError
- func Wrapf(err ActorError, format string, args ...interface{}) ActorError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFatal ¶
func IsFatal(err ActorError) bool
func RetCode ¶
func RetCode(err ActorError) uint8
Types ¶
type ActorError ¶
func Absorb ¶
func Absorb(err error, retCode uint8, msg string) ActorError
Absorb takes and error and makes in not fatal ActorError
func Escalate ¶
func Escalate(err error, msg string) ActorError
Escalate takes and error and escalates it into a fatal error
func Fatal ¶
func Fatal(message string, args ...interface{}) ActorError
func Fatalf ¶
func Fatalf(format string, args ...interface{}) ActorError
func HandleExternalError ¶
func HandleExternalError(err error, msg string) ActorError
func Newf ¶
func Newf(retCode uint8, format string, args ...interface{}) ActorError
Newf creates a new non-fatal error
func Wrap ¶
func Wrap(err ActorError, message string) ActorError
Wrap extens chain of errors with a message
func Wrapf ¶
func Wrapf(err ActorError, format string, args ...interface{}) ActorError
Wrapf extens chain of errors with a message
Click to show internal directories.
Click to hide internal directories.