mirror of
https://github.com/tursom/GoCollections.git
synced 2025-03-16 19:10:31 +08:00
17 lines
249 B
Go
17 lines
249 B
Go
package exceptions
|
|
|
|
type NPE struct {
|
|
RuntimeException
|
|
}
|
|
|
|
func NewNPE(message interface{}, getStackTrace bool) *NPE {
|
|
return &NPE{
|
|
NewRuntimeException(
|
|
message,
|
|
"exception caused NullPointerException:",
|
|
getStackTrace,
|
|
nil,
|
|
),
|
|
}
|
|
}
|