mirror of
https://github.com/tursom/GoCollections.git
synced 2026-08-19 13:33:29 +08:00
17 lines
290 B
Go
17 lines
290 B
Go
package exceptions
|
|
|
|
type IndexOutOfBound struct {
|
|
RuntimeException
|
|
}
|
|
|
|
func NewIndexOutOfBound(message interface{}, getStackTrace bool) IndexOutOfBound {
|
|
return IndexOutOfBound{
|
|
NewRuntimeException(
|
|
message,
|
|
"exception caused IndexOutOfBound:",
|
|
getStackTrace,
|
|
nil,
|
|
),
|
|
}
|
|
}
|