GoCollections/exceptions/NPE.go

17 lines
249 B
Go
Raw Normal View History

2021-05-21 11:14:07 +08:00
package exceptions
type NPE struct {
RuntimeException
}
2021-05-21 11:25:53 +08:00
func NewNPE(message interface{}, getStackTrace bool) *NPE {
2021-05-21 11:14:07 +08:00
return &NPE{
NewRuntimeException(
message,
"exception caused NullPointerException:",
getStackTrace,
nil,
),
}
}