From 61d0de3f4bf44f1d5903ebdc11742aeb58a64fb9 Mon Sep 17 00:00:00 2001 From: tursom Date: Sat, 26 Nov 2022 14:07:29 +0800 Subject: [PATCH] move important exceptions to package lang --- exceptions/ElementNotFound.go | 2 +- exceptions/IllegalParameter.go | 2 +- exceptions/IndexOutOfBoundError.go | 2 +- exceptions/OperationNotSupportedException.go | 2 +- exceptions/WrongCallHostException.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/exceptions/ElementNotFound.go b/exceptions/ElementNotFound.go index 8d4f854..93285c8 100644 --- a/exceptions/ElementNotFound.go +++ b/exceptions/ElementNotFound.go @@ -12,7 +12,7 @@ type ElementNotFoundException struct { func NewElementNotFoundException(message string, config *ExceptionConfig) *ElementNotFoundException { return &ElementNotFoundException{ - NewRuntimeException(message, config.AddSkipStack(1). + *NewRuntimeException(message, config.AddSkipStack(1). SetExceptionName("github.com.tursom.GoCollections.exceptions.ElementNotFoundException")), } } diff --git a/exceptions/IllegalParameter.go b/exceptions/IllegalParameter.go index 95c4b84..5b83bd5 100644 --- a/exceptions/IllegalParameter.go +++ b/exceptions/IllegalParameter.go @@ -12,7 +12,7 @@ type IllegalParameterException struct { func NewIllegalParameterException(message string, config *ExceptionConfig) *IllegalParameterException { return &IllegalParameterException{ - NewRuntimeException(message, config.AddSkipStack(1). + *NewRuntimeException(message, config.AddSkipStack(1). SetExceptionName("github.com.tursom.GoCollections.exceptions.IllegalParameterException")), } } diff --git a/exceptions/IndexOutOfBoundError.go b/exceptions/IndexOutOfBoundError.go index 9260266..a8df449 100644 --- a/exceptions/IndexOutOfBoundError.go +++ b/exceptions/IndexOutOfBoundError.go @@ -12,7 +12,7 @@ type IndexOutOfBound struct { func NewIndexOutOfBound(message string, config *ExceptionConfig) *IndexOutOfBound { return &IndexOutOfBound{ - NewRuntimeException(message, config.AddSkipStack(1). + *NewRuntimeException(message, config.AddSkipStack(1). SetExceptionName("github.com.tursom.GoCollections.exceptions.IndexOutOfBound")), } } diff --git a/exceptions/OperationNotSupportedException.go b/exceptions/OperationNotSupportedException.go index c073044..70c86a7 100644 --- a/exceptions/OperationNotSupportedException.go +++ b/exceptions/OperationNotSupportedException.go @@ -12,7 +12,7 @@ type OperationNotSupportedException struct { func NewOperationNotSupportedException(message string, config *ExceptionConfig) *OperationNotSupportedException { return &OperationNotSupportedException{ - NewRuntimeException(message, config.AddSkipStack(1). + *NewRuntimeException(message, config.AddSkipStack(1). SetExceptionName("github.com.tursom.GoCollections.exceptions.OperationNotSupportedException")), } } diff --git a/exceptions/WrongCallHostException.go b/exceptions/WrongCallHostException.go index 13a29c8..f35fe5e 100644 --- a/exceptions/WrongCallHostException.go +++ b/exceptions/WrongCallHostException.go @@ -12,7 +12,7 @@ type WrongCallHostException struct { func NewWrongCallHostException(message string) WrongCallHostException { return WrongCallHostException{ - NewRuntimeException(message, DefaultExceptionConfig().AddSkipStack(1). + *NewRuntimeException(message, DefaultExceptionConfig().AddSkipStack(1). SetExceptionName("github.com.tursom.GoCollections.exceptions.WrongCallHostException")), } }