lang

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	/** Message for trying to suppress a null exception. */
	NullCauseMessage string = "Cannot suppress a null exception."
	/** Message for trying to suppress oneself. */
	SelfSuppressionMessage string = "Self-suppression not permitted"
	/** Caption  for labeling causative exception stack traces */
	CauseCaption string = "Caused by: "
	/** Caption for labeling suppressed exception stack traces */
	SuppressedCaption string = "Suppressed: "
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Exception

type Exception struct {
	*Throwable
}

func NewException

func NewException() *Exception

func NewException1

func NewException1(message string) *Exception

func NewException2

func NewException2(message string, cause ThrowableInterface) *Exception

func NewException4

func NewException4(message string, cause *Throwable, enableSuppression, writableStackTrace bool) *Exception

type IllegalArgumentException

type IllegalArgumentException struct {
	*RuntimeException
}

func NewIllegalArgumentException

func NewIllegalArgumentException() *IllegalArgumentException

func NewIllegalArgumentException1

func NewIllegalArgumentException1(message string) *IllegalArgumentException

func NewIllegalArgumentException2

func NewIllegalArgumentException2(message string, cause ThrowableInterface) *IllegalArgumentException

type IllegalStateException

type IllegalStateException struct {
	*RuntimeException
}

func NewIllegalStateException

func NewIllegalStateException() *IllegalStateException

func NewIllegalStateException1

func NewIllegalStateException1(message string) *IllegalStateException

func NewIllegalStateException2

func NewIllegalStateException2(message string, cause ThrowableInterface) *IllegalStateException

type NullPointerException

type NullPointerException struct {
	*Exception
}

type RuntimeException

type RuntimeException struct {
	*Exception
}

func NewRuntimeException

func NewRuntimeException() *RuntimeException

func NewRuntimeException1

func NewRuntimeException1(message string) *RuntimeException

func NewRuntimeException2

func NewRuntimeException2(message string, cause ThrowableInterface) *RuntimeException

func NewRuntimeException4

func NewRuntimeException4(message string, cause *Throwable, enableSuppression, writableStackTrace bool) *RuntimeException

type Serializable

type Serializable interface {
}

type Throwable

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

func NewThrowable

func NewThrowable() *Throwable

func NewThrowable1

func NewThrowable1(message string) *Throwable

func NewThrowable2

func NewThrowable2(message string, cause ThrowableInterface) *Throwable

func NewThrowable4

func NewThrowable4(message string, cause *Throwable, enableSuppression, writableStackTrace bool) *Throwable

func (*Throwable) AddSuppressed

func (thiz *Throwable) AddSuppressed(exception ThrowableInterface)

func (*Throwable) Error

func (thiz *Throwable) Error() string

func (*Throwable) GetCause

func (thiz *Throwable) GetCause() ThrowableInterface

func (*Throwable) GetLocalizedMessage

func (thiz *Throwable) GetLocalizedMessage() string

func (*Throwable) GetMessage

func (thiz *Throwable) GetMessage() string

func (*Throwable) GetOurStackTrace

func (thiz *Throwable) GetOurStackTrace() []byte

func (*Throwable) GetStackTrace

func (thiz *Throwable) GetStackTrace() []byte

func (*Throwable) GetSuppressed

func (thiz *Throwable) GetSuppressed() []ThrowableInterface

func (*Throwable) InitCause

func (thiz *Throwable) InitCause(cause ThrowableInterface) ThrowableInterface

func (*Throwable) PrintStackTrace

func (thiz *Throwable) PrintStackTrace()

func (*Throwable) PrintStackTrace1

func (thiz *Throwable) PrintStackTrace1(writer io.Writer)

func (*Throwable) SetStackTrace

func (thiz *Throwable) SetStackTrace(trace []byte)

func (*Throwable) ToString

func (thiz *Throwable) ToString() string

type ThrowableInterface

type ThrowableInterface interface {
	GetMessage() string
	GetLocalizedMessage() string
	GetCause() ThrowableInterface
	InitCause(cause ThrowableInterface) ThrowableInterface
	ToString() string
	PrintStackTrace()
	PrintStackTrace1(writer io.Writer)

	GetSuppressed() []ThrowableInterface
	GetStackTrace() []byte
	Error() string
	// contains filtered or unexported methods
}

func NewNullPointerException

func NewNullPointerException(message string) ThrowableInterface

Jump to

Keyboard shortcuts

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