/*
- * jSite2 - ProtocolError.java -
- * Copyright © 2008 David Roden
+ * jFCPlib - ProtocolError.java - Copyright © 2008 David Roden
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
/**
* The “ProtocolError” message signals that something has gone really wrong.
- *
+ *
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
*/
public class ProtocolError extends BaseMessage {
/**
* Creates a new “ProtocolError” message that wraps the received message.
- *
+ *
* @param receivedMessage
* The received message
*/
/**
* Returns whether the causing message had the “Global” flag set.
- *
+ *
* @return <code>true</code> if the causing message had the “Global” flag
* set
*/
/**
* Returns the error code.
- *
- * @return The error code, or <code>-1</code> if the error code could not
- * be parsed
+ *
+ * @return The error code, or <code>-1</code> if the error code could not be
+ * parsed
*/
public int getCode() {
return FcpUtils.safeParseInt(getField("Code"));
/**
* Returns the description of the error.
- *
+ *
* @return The description of the error
*/
public String getCodeDescription() {
/**
* Returns some extra description of the error.
- *
- * @return Extra description of the error, or <code>null</code> if there
- * is none
+ *
+ * @return Extra description of the error, or <code>null</code> if there is
+ * none
*/
public String getExtraDescription() {
return getField("ExtraDescription");
/**
* Returns whether the connection to the node can stay open.
- *
+ *
* @return <code>true</code> when the connection has to be closed,
* <code>false</code> otherwise
*/
/**
* The identifier of the causing request, if any.
- *
+ *
* @return The identifier of the causing request
*/
public String getIdentifier() {