X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=E2Manager%2Fe2managererrors%2Fe2t_instance_absence_error.go;fp=E2Manager%2Fe2managererrors%2Fe2t_instance_absence_error.go;h=772d62ad45f8c90bbb9358686557efa44969be1d;hb=efcb4528362460aa2249d319c9752b63bb720fe2;hp=0000000000000000000000000000000000000000;hpb=b6c5a882f986ed2d6440cf9be83d69740179c53d;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/e2managererrors/e2t_instance_absence_error.go b/E2Manager/e2managererrors/e2t_instance_absence_error.go new file mode 100644 index 0000000..772d62a --- /dev/null +++ b/E2Manager/e2managererrors/e2t_instance_absence_error.go @@ -0,0 +1,35 @@ +// +// Copyright 2019 AT&T Intellectual Property +// Copyright 2019 Nokia +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. +// + +package e2managererrors + +type E2TInstanceAbsenceError struct { + *BaseError +} + +func NewE2TInstanceAbsenceError() *E2TInstanceAbsenceError { + return &E2TInstanceAbsenceError{ + &BaseError{ + Code: 510, + Message: "The New RAN can't be added, please try later.", + }, + } +} + +func (e *E2TInstanceAbsenceError) Error() string { + return e.Message +}