Code Review
/
ric-plt
/
e2mgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add Automation for E2T init
[ric-plt/e2mgr.git]
/
E2Manager
/
e2managererrors
/
wrong_state_error.go
diff --git
a/E2Manager/e2managererrors/wrong_state_error.go
b/E2Manager/e2managererrors/wrong_state_error.go
index
be7b59a
..
7116785
100644
(file)
--- a/
E2Manager/e2managererrors/wrong_state_error.go
+++ b/
E2Manager/e2managererrors/wrong_state_error.go
@@
-17,19
+17,21
@@
package e2managererrors
package e2managererrors
+import "fmt"
+
type WrongStateError struct {
type WrongStateError struct {
-
Err
BaseError
+
*
BaseError
}
}
-func NewWrongStateError(
) *RnibDb
Error {
- return &
RnibDb
Error{
- BaseError{
+func NewWrongStateError(
activityName string, state string) *WrongState
Error {
+ return &
WrongState
Error{
+
&
BaseError{
Code: 403,
Code: 403,
- Message:
"RAN in wrong state"
,
+ Message:
fmt.Sprintf("Activity %s rejected. RAN current state %s does not allow its execution ", activityName, state)
,
},
}
}
func (e *WrongStateError) Error() string {
},
}
}
func (e *WrongStateError) Error() string {
- return e.
Err.
Message
+ return e.Message
}
}