update Exception

This commit is contained in:
tursom 2021-05-21 17:35:02 +08:00
parent 569bc35090
commit b44b1fd9a8
2 changed files with 4 additions and 4 deletions

View File

@ -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:",

View File

@ -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:",