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