GoCollections/exceptions/NPE.go
2022-03-23 10:15:18 +08:00

17 lines
255 B
Go

package exceptions
type NPE struct {
RuntimeException
}
func NewNPE(message any, config *ExceptionConfig) *NPE {
config.AddSkipStack(1)
return &NPE{
NewRuntimeException(
message,
"exception caused NullPointerException:",
config,
),
}
}