mirror of
https://github.com/tursom/GoCollections.git
synced 2025-03-16 02:50:31 +08:00
17 lines
255 B
Go
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,
|
|
),
|
|
}
|
|
}
|