RIC-961:implement Xn and X2 component IDs correctly in E2M
[ric-plt/e2mgr.git] / E2Manager / e2managererrors / invalid_json_error.go
index 17a3564..9d1a75e 100644 (file)
 // 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
 
 
 type InvalidJsonError struct {
-       Err BaseError
+       *BaseError
 }
 
 func NewInvalidJsonError() *InvalidJsonError {
        return &InvalidJsonError{
-               BaseError{
+               &BaseError{
                        Code:    401,
                        Message: "corrupted json",
                },
@@ -32,6 +35,6 @@ func NewInvalidJsonError() *InvalidJsonError {
 }
 
 func (e *InvalidJsonError) Error() string {
-       return e.Err.Message
+       return e.Message
 }