2022-11-25 18:19:33 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2022 tursom. All rights reserved.
|
|
|
|
* Use of this source code is governed by a GPL-3
|
|
|
|
* license that can be found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2022-03-31 01:22:30 +08:00
|
|
|
func NewElementNotFoundException(message string, config *ExceptionConfig) *ElementNotFoundException {
|
2022-03-21 11:02:41 +08:00
|
|
|
return &ElementNotFoundException{
|
2022-04-02 15:25:35 +08:00
|
|
|
NewRuntimeException(message, config.AddSkipStack(1).
|
|
|
|
SetExceptionName("github.com.tursom.GoCollections.exceptions.ElementNotFoundException")),
|
2021-05-21 09:41:58 +08:00
|
|
|
}
|
|
|
|
}
|