GoCollections/exceptions/ElementNotFound.go

17 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
}
2021-05-21 17:35:02 +08:00
func NewElementNotFoundException(message interface{}, getStackTrace bool) ElementNotFoundException {
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
}
}