mirror of
https://github.com/tursom/GoCollections.git
synced 2025-01-15 05:21:26 +08:00
17 lines
247 B
Go
17 lines
247 B
Go
package exceptions
|
|
|
|
type NPE struct {
|
|
RuntimeException
|
|
}
|
|
|
|
func NewNPE(message interface{}, getStackTrace bool) NPE {
|
|
return NPE{
|
|
NewRuntimeException(
|
|
message,
|
|
"exception caused NullPointerException:",
|
|
getStackTrace,
|
|
nil,
|
|
),
|
|
}
|
|
}
|