Documentation ¶
Overview ¶
Package errs define some system errors with specified types.
Index ¶
- Constants
- func CancelJobError(err error) error
- func CheckStatsError(err error) error
- func GetJobLogError(err error) error
- func GetJobStatsError(err error) error
- func HandleJSONDataError(err error) error
- func IsJobCancelledError(err error) bool
- func IsJobStoppedError(err error) bool
- func IsObjectNotFoundError(err error) bool
- func JobCancelledError() error
- func JobStoppedError() error
- func LaunchJobError(err error) error
- func MissingBackendHandlerError(err error) error
- func New(code uint16, err string, description string) error
- func NoObjectFoundError(object string) error
- func ReadRequestBodyError(err error) error
- func RetryJobError(err error) error
- func StopJobError(err error) error
- func UnauthorizedError(err error) error
- func UnknownActionNameError(err error) error
Constants ¶
const ( //JobStoppedErrorCode is code for jobStoppedError JobStoppedErrorCode = 10000 + iota //JobCancelledErrorCode is code for jobCancelledError JobCancelledErrorCode //ReadRequestBodyErrorCode is code for the error of reading http request body error ReadRequestBodyErrorCode //HandleJSONDataErrorCode is code for the error of handling json data error HandleJSONDataErrorCode //MissingBackendHandlerErrorCode is code for the error of missing backend controller MissingBackendHandlerErrorCode //LaunchJobErrorCode is code for the error of launching job LaunchJobErrorCode //CheckStatsErrorCode is code for the error of checking stats of worker pool CheckStatsErrorCode //GetJobStatsErrorCode is code for the error of getting stats of enqueued job GetJobStatsErrorCode //StopJobErrorCode is code for the error of stopping job StopJobErrorCode //CancelJobErrorCode is code for the error of cancelling job CancelJobErrorCode //RetryJobErrorCode is code for the error of retrying job RetryJobErrorCode //UnknownActionNameErrorCode is code for the case of unknown action name UnknownActionNameErrorCode //GetJobLogErrorCode is code for the error of getting job log GetJobLogErrorCode //NoObjectFoundErrorCode is code for the error of no object found NoObjectFoundErrorCode //UnAuthorizedErrorCode is code for the error of unauthorized accessing UnAuthorizedErrorCode )
Variables ¶
This section is empty.
Functions ¶
func CancelJobError ¶
CancelJobError is error for the case of cancelling job failed
func CheckStatsError ¶
CheckStatsError is error wrapper for the error of checking stats failed
func GetJobLogError ¶
GetJobLogError is error for the case of getting job log failed
func GetJobStatsError ¶
GetJobStatsError is error wrapper for the error of getting job stats
func HandleJSONDataError ¶
HandleJSONDataError is error wrapper for the error of handling json data.
func IsJobCancelledError ¶
IsJobCancelledError return true if the error is jobCancelledError
func IsJobStoppedError ¶
IsJobStoppedError return true if the error is jobStoppedError
func IsObjectNotFoundError ¶
IsObjectNotFoundError return true if the error is objectNotFoundError
func JobCancelledError ¶
func JobCancelledError() error
JobCancelledError is error wrapper for the case of cancelling job.
func JobStoppedError ¶
func JobStoppedError() error
JobStoppedError is error wrapper for the case of stopping job.
func LaunchJobError ¶
LaunchJobError is error wrapper for the error of launching job failed.
func MissingBackendHandlerError ¶
MissingBackendHandlerError is error wrapper for the error of missing backend controller.
func NoObjectFoundError ¶
NoObjectFoundError is error wrapper for the case of no object found
func ReadRequestBodyError ¶
ReadRequestBodyError is error wrapper for the error of reading request body.
func RetryJobError ¶
RetryJobError is error for the case of retrying job failed
func StopJobError ¶
StopJobError is error for the case of stopping job failed
func UnauthorizedError ¶
UnauthorizedError is error for the case of unauthorized accessing
func UnknownActionNameError ¶
UnknownActionNameError is error for the case of getting unknown job action
Types ¶
This section is empty.