GoCollections/exceptions/IndexOutOfBoundError.go
2021-05-21 11:14:07 +08:00

17 lines
285 B
Go

package exceptions
type IndexOutOfBound struct {
RuntimeException
}
func NewIndexOutOfBound(message string, getStackTrace bool) IndexOutOfBound {
return IndexOutOfBound{
NewRuntimeException(
message,
"exception caused IndexOutOfBound:",
getStackTrace,
nil,
),
}
}