Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RequiredField error when required field is empty // Deprecated: in favour of error types in each package RequiredField = "Required field" // NilDocument error when document passed is Nil // Deprecated: in favour of error types in each package NilDocument = "Nil document" // IdentifierReUsed error when same identifier is re-used // Deprecated: in favour of error types in each package IdentifierReUsed = "Identifier re-used" // NilDocumentData error when document data is Nil // Deprecated: in favour of error types in each package NilDocumentData = "Nil document data" // RequirePositiveNumber error when amount or any such is zero or negative // Deprecated: in favour of error types in each package RequirePositiveNumber = "Require positive number" )
Variables ¶
This section is empty.
Functions ¶
func NewWithErrors ¶
NewWithErrors constructs a new error with code, error message, and errors
func NilError ¶
func NilError(param interface{}) error
NilError returns error with Type added to message Deprecated: in favour of functions in `github.com/centrifuge/go-centrifuge/errors`
Types ¶
type P2PError ¶
type P2PError struct {
// contains filtered or unexported fields
}
P2PError represents p2p error type
func FromError ¶
FromError constructs and returns errorspb.Error if bool true, conversion to P2PError successful else failed and returns unknown P2PError
Click to show internal directories.
Click to hide internal directories.