GoCollections/exceptions/ElementNotFound.go

17 lines
337 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
}
2021-05-21 11:25:53 +08:00
func NewElementNotFoundException(message interface{}, getStackTrace bool) *ElementNotFoundException {
2021-05-21 09:41:58 +08:00
return &ElementNotFoundException{
2021-05-21 11:14:07 +08:00
NewRuntimeException(
message,
"exception caused ElementNotFoundException:",
getStackTrace,
nil,
),
2021-05-21 09:41:58 +08:00
}
}