Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrEntityNotFound return when service return 404 HTTP status code and body is empty ErrEntityNotFound = &VirgilAPIError{ Code: 10001, Message: "entity was not found", } // ErrInternalServerError return when service return 5xx HTTP status code and body is empty ErrInternalServerError = &VirgilAPIError{ Code: 10000, Message: "internal server error", } )
Functions ¶
func NewSDKError ¶
Types ¶
type VirgilAPIError ¶
VirgilAPIError is service's errors
func (*VirgilAPIError) Error ¶
func (err *VirgilAPIError) Error() string
func (*VirgilAPIError) Is ¶
func (err *VirgilAPIError) Is(e error) bool
Click to show internal directories.
Click to hide internal directories.