mirror of
https://github.com/tursom/GoCollections.git
synced 2025-04-01 01:40:08 +08:00
17 lines
285 B
Go
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,
|
|
),
|
|
}
|
|
}
|