2 * jSite2 - FcpProtocolException.java -
3 * Copyright © 2008 David Roden
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 package net.pterodactylus.util.fcp;
25 * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
28 public class FcpProtocolException extends FcpException {
30 private final int code;
31 private final boolean fatal;
32 private final boolean global;
34 private String codeDescription;
35 private String extraDescription;
36 private String identifier;
38 public FcpProtocolException(int code, boolean fatal, boolean global) {
74 * @return the codeDescription
76 String getCodeDescription() {
77 return codeDescription;
83 * @param codeDescription
84 * the codeDescription to set
86 void setCodeDescription(String codeDescription) {
87 this.codeDescription = codeDescription;
93 * @return the extraDescription
95 String getExtraDescription() {
96 return extraDescription;
102 * @param extraDescription
103 * the extraDescription to set
105 void setExtraDescription(String extraDescription) {
106 this.extraDescription = extraDescription;
112 * @return the identifier
114 String getIdentifier() {
122 * the identifier to set
124 void setIdentifier(String identifier) {
125 this.identifier = identifier;