errors

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsError

func IsError(e error, text string) bool

func New

func New(s string) error

New defines the error pointing to the line where it occurred.

func NewPredictionError added in v0.0.5

func NewPredictionError(v []byte) error

NewPredictionError create a response object with error response from the model.

Types

type Error added in v0.0.5

type Error struct {
	// contains filtered or unexported fields
}

func (*Error) Error added in v0.0.5

func (e *Error) Error() string

type ModelPredictionError added in v0.0.5

type ModelPredictionError struct {
	RawJSON []byte
	// contains filtered or unexported fields
}

ModelPredictionError model prediction error.

func (ModelPredictionError) Error added in v0.0.5

func (m ModelPredictionError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL