RIC-961:implement Xn and X2 component IDs correctly in E2M
[ric-plt/e2mgr.git] / E2Manager / e2managererrors / routing_manager_error.go
index 529df35..5141176 100644 (file)
 // limitations under the License.
 //
 
+//  This source code is part of the near-RT RIC (RAN Intelligent Controller)
+//  platform project (RICP).
+
 package e2managererrors
 
 type RoutingManagerError struct {
+       *BaseError
 }
 
 func NewRoutingManagerError() *RoutingManagerError {
-       return &RoutingManagerError{}
+       return &RoutingManagerError{
+               &BaseError{
+                       Code:    511,
+                       Message: "No Routing Manager Available",
+               },
+       }
 }
 
 func (e *RoutingManagerError) Error() string {
-       return "Routing Manager Error"
+       return e.Message
 }