mirror of
https://github.com/tursom/GoCollections.git
synced 2025-02-26 12:03:21 +08:00
update Exception
This commit is contained in:
parent
569bc35090
commit
b44b1fd9a8
@ -4,8 +4,8 @@ type ElementNotFoundException struct {
|
||||
RuntimeException
|
||||
}
|
||||
|
||||
func NewElementNotFoundException(message interface{}, getStackTrace bool) *ElementNotFoundException {
|
||||
return &ElementNotFoundException{
|
||||
func NewElementNotFoundException(message interface{}, getStackTrace bool) ElementNotFoundException {
|
||||
return ElementNotFoundException{
|
||||
NewRuntimeException(
|
||||
message,
|
||||
"exception caused ElementNotFoundException:",
|
||||
|
@ -4,8 +4,8 @@ type NPE struct {
|
||||
RuntimeException
|
||||
}
|
||||
|
||||
func NewNPE(message interface{}, getStackTrace bool) *NPE {
|
||||
return &NPE{
|
||||
func NewNPE(message interface{}, getStackTrace bool) NPE {
|
||||
return NPE{
|
||||
NewRuntimeException(
|
||||
message,
|
||||
"exception caused NullPointerException:",
|
||||
|
Loading…
Reference in New Issue
Block a user