Documentation ¶
Index ¶
- func IsComponentNotFoundError(err error) bool
- func IsDidNotMatchError(err error) bool
- func IsNetworkError(err error) bool
- func IsNotFoundError(err error) bool
- func IsNotImplementedError(err error) bool
- func IsPreConditionError(err error) bool
- func IsTooManyRequestsError(err error) bool
- func NewComponentNotFoundError(msg string) error
- func NewDidNotMatchError(msg string) error
- func NewHTTPError(msg string) error
- func NewNotFoundError(msg string) error
- func NewNotImplementedError(msg string) error
- func NewPreConditionError(msg string) error
- func NewSNMPError(msg string) error
- func NewTooManyRequestsError(msg string) error
- type ComponentNotFoundError
- type DidNotMatchError
- type HTTPError
- type NotFoundError
- type NotImplementedError
- type OutputError
- type PreConditionError
- type SNMPError
- type TooManyRequestsError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsComponentNotFoundError ¶
IsComponentNotFoundError returns if the error is an ComponentNotFoundError
func IsDidNotMatchError ¶
IsDidNotMatchError returns if the error is an ComponentNotFoundError
func IsNetworkError ¶
IsNetworkError returns true if an error is a network error.
func IsNotFoundError ¶
IsNotFoundError returns if the error is an NotFoundError
func IsNotImplementedError ¶
IsNotImplementedError returns if the error is an NotImplementedError
func IsPreConditionError ¶
IsPreConditionError returns if the error is an PreConditionError
func IsTooManyRequestsError ¶
IsTooManyRequestsError returns if the error is an TooManyRequestsError
func NewComponentNotFoundError ¶
NewComponentNotFoundError returns an ComponentNotFoundError
func NewDidNotMatchError ¶
NewDidNotMatchError returns an DidNotMatchError
func NewNotFoundError ¶
NewNotFoundError returns an NotFoundError
func NewNotImplementedError ¶
NewNotImplementedError returns an NotImplementedError
func NewPreConditionError ¶
NewPreConditionError returns an PreConditionError
func NewTooManyRequestsError ¶
NewTooManyRequestsError returns an TooManyRequestsError
Types ¶
type ComponentNotFoundError ¶
type ComponentNotFoundError struct {
// contains filtered or unexported fields
}
ComponentNotFoundError occurs when the specified component was not found
type DidNotMatchError ¶
type DidNotMatchError struct {
// contains filtered or unexported fields
}
DidNotMatchError occurs when the value didn't match
type HTTPError ¶
type HTTPError struct {
// contains filtered or unexported fields
}
HTTPError is an error returned by snmp functions.
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
NotFoundError occurs when something is not found.
type NotImplementedError ¶
type NotImplementedError struct {
// contains filtered or unexported fields
}
NotImplementedError occurs when a condition for an action is not fulfilled.
type OutputError ¶
type OutputError struct {
Error string `json:"error" xml:"error"`
}
OutputError
OutputError embeds all error messages which occur in requests on the API.
swagger:model
type PreConditionError ¶
type PreConditionError struct {
// contains filtered or unexported fields
}
PreConditionError occurs a condition for an action is not fulfilled.
type SNMPError ¶
type SNMPError struct {
// contains filtered or unexported fields
}
SNMPError is an error returned by snmp functions.
type TooManyRequestsError ¶
type TooManyRequestsError struct {
// contains filtered or unexported fields
}
TooManyRequestsError occurs when there were too many request sent to the api.