mirror of
https://github.com/tursom/GoCollections.git
synced 2025-03-23 16:30:08 +08:00
27 lines
504 B
Go
27 lines
504 B
Go
package exceptions
|
|
|
|
var ElementFound = ElementFoundThrowable{}
|
|
var ElementNotFound = ElementFoundThrowable{}
|
|
var CollectionLoopFinished = CollectionLoop{}
|
|
|
|
type ElementFoundThrowable struct {
|
|
}
|
|
|
|
func (e ElementFoundThrowable) Error() string {
|
|
return "element found"
|
|
}
|
|
|
|
type ElementNotFoundThrowable struct {
|
|
}
|
|
|
|
func (e ElementNotFoundThrowable) Error() string {
|
|
return "element not found"
|
|
}
|
|
|
|
type CollectionLoop struct {
|
|
}
|
|
|
|
func (e CollectionLoop) Error() string {
|
|
return "collection loop finished"
|
|
}
|