Documentation
¶
Index ¶
- func New(messages ...string) ec.Throwable
- func WithMessage(err error, message string) ec.Throwable
- func Wrap(err error) ec.Throwable
- type ArgumentException
- type NoSuchMethodException
- type RangeException
- type TimeoutException
- type TypeException
- type UndefinedIndexException
- type UnsupportedException
- type ValueException
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithMessage ¶
WithMessage new exception
Types ¶
type ArgumentException ¶
ArgumentException argument exception
func NewArgumentException ¶
func NewArgumentException(name string, invalidValue any, messages ...string) *ArgumentException
NewArgumentException new argument exception
func NewEmptyArgumentException ¶
func NewEmptyArgumentException(name string) *ArgumentException
NewEmptyArgumentException argument empty
func (ArgumentException) Unwrap ¶
func (e ArgumentException) Unwrap() error
type NoSuchMethodException ¶
NoSuchMethodException no such method exception
func NewNoSuchMethodException ¶
func NewNoSuchMethodException(receiver any, method string) *NoSuchMethodException
NewNoSuchMethodException new no such method exception
func NewUnexportedMethodException ¶
func NewUnexportedMethodException(method string) *NoSuchMethodException
NewUnexportedMethodException new unexported method exception
func (NoSuchMethodException) Unwrap ¶
func (e NoSuchMethodException) Unwrap() error
type RangeException ¶
RangeException range exception
func NewRangeException ¶
func NewRangeException(start int, end int) *RangeException
NewRangeException new range exception
func (*RangeException) Error ¶
func (e *RangeException) Error() string
func (RangeException) Unwrap ¶
func (e RangeException) Unwrap() error
type TimeoutException ¶
TimeoutException timeout exception
func NewTimeoutException ¶
func NewTimeoutException() *TimeoutException
NewTimeoutException new timeout exception
func (TimeoutException) Unwrap ¶
func (e TimeoutException) Unwrap() error
type TypeException ¶
TypeException type exception
func NewTypeException ¶
func NewTypeException(message string) *TypeException
NewTypeException new type exception
func (TypeException) Unwrap ¶
func (e TypeException) Unwrap() error
type UndefinedIndexException ¶
type UndefinedIndexException struct {
ArgumentException
}
func NewUndefinedIndexException ¶
func NewUndefinedIndexException(index string) *UndefinedIndexException
func (UndefinedIndexException) Unwrap ¶
func (e UndefinedIndexException) Unwrap() error
type UnsupportedException ¶
UnsupportedException unsupported exception
func NewUnsupportedException ¶
func NewUnsupportedException(message string) *UnsupportedException
NewUnsupportedException new unsupported exception
type ValueException ¶
ValueException exception with value
func NewValueException ¶
func NewValueException(v any) *ValueException
NewValueException new ValueException