public class PCEPError extends PCEPMessage
From RFC 5440 Section 6.7. Error (PCErr) Message
The PCEP Error message (also referred to as a PCErr message) is sent in several situations: when a protocol error condition is met or when the request is not compliant with the PCEP specification (e.g., reception of a malformed message, reception of a message with a mandatory missing object, policy violation, unexpected message, unknown request reference). The Message-Type field of the PCEP common header for the PCErr message is set to 6.
The PCErr message is sent by a PCC or a PCE in response to a request or in an unsolicited manner. If the PCErr message is sent in response to a request, the PCErr message MUST include the set of RP objects related to the pending path computation requests that triggered the error condition. In the latter case (unsolicited), no RP object is inserted in the PCErr message. For example, no RP object is inserted in a PCErr when the error condition occurred during the initialization phase. A PCErr message MUST contain a PCEP-ERROR object specifying the PCEP error condition. The PCEP- ERROR object is defined in Section 7.15.
The format of a PCErr message is as follows:
log, messageBytes
Modifier and Type | Method and Description |
---|---|
void |
encode()
Encode the PCEP Message
|
boolean |
equals(Object obj) |
ErrorConstruct |
getError() |
LinkedList<ErrorConstruct> |
getErrorList() |
LinkedList<PCEPErrorObject> |
getErrorObjList() |
OPEN |
getOpen() |
int |
hashCode() |
void |
setError(ErrorConstruct error) |
void |
setErrorList(LinkedList<ErrorConstruct> errorList) |
void |
setErrorObjList(LinkedList<PCEPErrorObject> errorObjList) |
void |
setOpen(OPEN open) |
encodeHeader, getBytes, getLength, getMessageType, getMessageType, getVer, setMessageLength, setMessageType
public PCEPError()
public PCEPError(byte[] bytes) throws PCEPProtocolViolationException
PCEPProtocolViolationException
public void encode() throws PCEPProtocolViolationException
PCEPProtocolViolationException
public LinkedList<PCEPErrorObject> getErrorObjList()
public void setErrorObjList(LinkedList<PCEPErrorObject> errorObjList)
public OPEN getOpen()
public void setOpen(OPEN open)
public LinkedList<ErrorConstruct> getErrorList()
public void setErrorList(LinkedList<ErrorConstruct> errorList)
public ErrorConstruct getError()
public void setError(ErrorConstruct error)
public int hashCode()
hashCode
in class PCEPMessage
public boolean equals(Object obj)
equals
in class PCEPMessage
Copyright © 2016. All rights reserved.