exception

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

View Source
const NOT_FOUND = 404
View Source
const SERVER_ERROR = 500

Variables

This section is empty.

Functions

This section is empty.

Types

type Exception

type Exception struct {
	Code    int
	Message string
}

func (*Exception) Error

func (e *Exception) Error() string

func (*Exception) GetCode

func (e *Exception) GetCode() int

func (*Exception) GetMessage

func (e *Exception) GetMessage() string

type ExceptionInterface

type ExceptionInterface interface {
	error
	GetMessage() string
	GetCode() int
}

func NewDefaultException

func NewDefaultException(message string) ExceptionInterface

Jump to

Keyboard shortcuts

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