Documentation ¶
Index ¶
- func Report(err error, source string, log contract.Logger)
- type Base
- type ErrGraphHasCycles
- type ErrInvalidResponse
- type ErrInvalidSchema
- type ErrNoParameters
- type ErrNoProperty
- type ErrNotAn
- type ErrNotFound
- type ErrOops
- type ErrOperationMalformed
- type ErrOutOfRange
- type ErrSecurityNotFound
- type IError
- type NullObjectPrototype
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Base ¶
Base is a generic error used within Oasis. Having it's root cause is what makes it good.
type ErrGraphHasCycles ¶
type ErrGraphHasCycles struct { Base Cycles *collection.NodeStack }
ErrGraphHasCycles means an execution graph is not a DAG.
func GraphHasCycles ¶
func GraphHasCycles(cycle *collection.NodeStack, cause error) ErrGraphHasCycles
GraphHasCycles creates a new ErrGraphHasCycles error instance.
func (ErrGraphHasCycles) Error ¶
func (err ErrGraphHasCycles) Error() string
type ErrInvalidResponse ¶
type ErrInvalidResponse struct {
Base
}
ErrInvalidResponse may be returned from response-related methods of specs.
func InvalidResponse ¶
func InvalidResponse(details string, cause error) ErrInvalidResponse
InvalidResponse creates a new ErrInvalidResponse error instance.
func (ErrInvalidResponse) Error ¶
func (err ErrInvalidResponse) Error() string
type ErrInvalidSchema ¶
ErrInvalidSchema may be returned from schema-related methods of specs.
func InvalidSchema ¶
func InvalidSchema(sn string, details string, cause error) ErrInvalidSchema
InvalidSchema creates a new ErrInvalidSchema error instance.
func (ErrInvalidSchema) Error ¶
func (err ErrInvalidSchema) Error() string
type ErrNoParameters ¶
ErrNoParameters happens when there are parameters missing which are needed to build an operation before testing. Usually happens in paths, queries & headers.
func NoParameters ¶
func NoParameters(missingParams []string, kind string, cause error) ErrNoParameters
NoParameters creates a new ErrNoData error instance.
func (ErrNoParameters) Error ¶
func (err ErrNoParameters) Error() string
type ErrNoProperty ¶
type ErrNoProperty struct { Base // contains filtered or unexported fields }
ErrNoProperty happens when a property was not found in an object.
func NoProperty ¶
func NoProperty(prop string, cause error) ErrNoProperty
NoProperty creates a new ErrNoProperty error instance.
func (ErrNoProperty) Error ¶
func (err ErrNoProperty) Error() string
type ErrNotAn ¶
type ErrNotAn struct { Base // contains filtered or unexported fields }
ErrNotAn happens when something is not what it appears to be.
type ErrNotFound ¶
ErrNotFound may be returned from host-related methods of specs.
func NotFound ¶
func NotFound(what string, hn string, cause error) ErrNotFound
NotFound creates a new ErrHostNotFound error instance.
func (ErrNotFound) Error ¶
func (err ErrNotFound) Error() string
type ErrOperationMalformed ¶
ErrOperationMalformed is returned when there is not enough data in the API spec, or the data is incorrect, which makes operation creation impossible.
func OperationMalformed ¶
func OperationMalformed(id string, details string, cause error) ErrOperationMalformed
OperationMalformed creates a new ErrOperationMalformed error instance.
func (ErrOperationMalformed) Error ¶
func (err ErrOperationMalformed) Error() string
type ErrOutOfRange ¶
type ErrOutOfRange struct { Base // contains filtered or unexported fields }
ErrOutOfRange happens when an array index is out of range.
func OutOfRange ¶
func OutOfRange(i int, a *[]interface{}, cause error) ErrOutOfRange
OutOfRange creates a new ErrOutOfRange error instance.
func (ErrOutOfRange) Error ¶
func (err ErrOutOfRange) Error() string
type ErrSecurityNotFound ¶
ErrSecurityNotFound may be returned from security-related methods of specs.
func SecurityNotFound ¶
func SecurityNotFound(sn string, details string, cause error) ErrSecurityNotFound
SecurityNotFound creates a new ErrSecurityNotFound error instance.
func (ErrSecurityNotFound) Error ¶
func (err ErrSecurityNotFound) Error() string
type NullObjectPrototype ¶
NullObjectPrototype is a prototype implementation of null entities, such as NullSpec and NullOperation.
func NullObject ¶
func NullObject(err error, log contract.Logger) NullObjectPrototype
NullObject creates a new NullONullObjectPrototype instance.
func (NullObjectPrototype) Report ¶
func (null NullObjectPrototype) Report()
Report reports the contained error.