blob: de680615153185009fde774b99b1da1981525f62 [file] [log] [blame]
mohamedrahil00f6f262016-11-24 20:20:41 +05301/*
2 * Copyright 2016-present Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.pcep.controller;
17
18/**
19 * PCEP error message type information.
20 */
21public enum PcepErrorType {
22 SESSIONESTABLISHMENTFAILURE(1),
23 CAPABALITYNOTSUPPORTED(2),
24 UNKNOWNOBJECT(3),
25 NOTSUPPORTEDOBJECT(4),
26 POLICYVIOLATION(5),
27 MANDATORYOBJECTMISSING(6),
28 SYNCHRONIZEDPATHCOMPUTATIONREQUESTMISSING(7),
29 UNKNOWNREQUESTREFERENCE(8),
30 ESTABLISHINGSECONDPCEPSESSION(9),
31 RECEPTIONOFINVALIDOBJECT(10),
32 INVALIDOPERATION(19),
33 VIRTUALNETWORKTLVMISSING(255);
34
35 public int value;
36
37 /**
38 * Creates an instance of Pcep Error Type.
39 *
40 * @param value represents Error type
41 */
42 PcepErrorType(int value) {
43 this.value = value;
44 }
45
46 /**
47 * Gets the value representing Pcep Error Type.
48 *
49 * @return value represents Error Type
50 */
51 public int value() {
52 return value;
53 }
54}