X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fe2managererrors%2Fwrong_state_error.go;h=aadbc52ab31b089c806be21adcc0245aacc65167;hb=372a275602ae05da22130a4601709291c7fbbaa6;hp=ea984ed9ec668876ed15d1897ef992acc48ea6e5;hpb=549944ecfb9e75ed4a03dd6d10e4160b89f26ca8;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/e2managererrors/wrong_state_error.go b/E2Manager/e2managererrors/wrong_state_error.go index ea984ed..aadbc52 100644 --- a/E2Manager/e2managererrors/wrong_state_error.go +++ b/E2Manager/e2managererrors/wrong_state_error.go @@ -13,25 +13,28 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// + +// This source code is part of the near-RT RIC (RAN Intelligent Controller) +// platform project (RICP). + package e2managererrors import "fmt" type WrongStateError struct { - Err BaseError + *BaseError } func NewWrongStateError(activityName string, state string) *WrongStateError { return &WrongStateError{ - BaseError{ + &BaseError{ Code: 403, - Message: fmt.Sprintf("Activity <%s> rejected. RAN current state <%s> does not allow its execution ", activityName, state) , + Message: fmt.Sprintf("Activity %s rejected. RAN current state %s does not allow its execution ", activityName, state) , }, } } func (e *WrongStateError) Error() string { - return e.Err.Message + return e.Message }