diff options
Diffstat (limited to 'recording/errors.go')
-rw-r--r-- | recording/errors.go | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/recording/errors.go b/recording/errors.go deleted file mode 100644 index 48a492e..0000000 --- a/recording/errors.go +++ /dev/null @@ -1,33 +0,0 @@ -package recording - -import "fmt" - -/* -Task errors. -*/ - -type RecoverableTaskError struct { - err error - message string -} - -func (e *RecoverableTaskError) Error() string { - return fmt.Sprintf("%v: %v", e.message, e.err) -} - -func NewRecoverableTaskError(message string, err error) error { - return &RecoverableTaskError{message: message, err: err} -} - -type UnrecoverableTaskError struct { - err error - message string -} - -func (e *UnrecoverableTaskError) Error() string { - return fmt.Sprintf("%v: %v", e.message, e.err) -} - -func NewUnrecoverableTaskError(message string, err error) error { - return &UnrecoverableTaskError{message: message, err: err} -} |