GoCollections/exceptions/ElementNotFound.go

16 lines
335 B
Go
Raw Normal View History

2021-05-21 09:41:58 +08:00
package exceptions
type ElementNotFoundException struct {
2021-05-21 10:31:49 +08:00
RuntimeException
2021-05-21 09:41:58 +08:00
}
2022-03-23 10:15:18 +08:00
func NewElementNotFoundException(message any, config *ExceptionConfig) *ElementNotFoundException {
2022-03-21 11:02:41 +08:00
return &ElementNotFoundException{
2021-05-21 11:14:07 +08:00
NewRuntimeException(
message,
"exception caused ElementNotFoundException:",
2022-03-28 18:19:05 +08:00
config.AddSkipStack(1),
2021-05-21 11:14:07 +08:00
),
2021-05-21 09:41:58 +08:00
}
}