errorlib

package
v0.0.0-...-626f07b Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TimeLimitError = &CustomError{
		errString: "Error Time Limit Exceeded",
	}

	MemoryLimitError = &CustomError{
		errString: "Error Memory Limit Exceeded",
	}
)

Functions

func Init

func Init(prefix string)

func ToString

func ToString(err error) string

Types

type CustomError

type CustomError struct {
	Traces []string
	// contains filtered or unexported fields
}

func AddTrace

func AddTrace(err interface{}) *CustomError

func (*CustomError) Error

func (ce *CustomError) Error() string

Jump to

Keyboard shortcuts

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