/protocols/smpp/src/main/java/org/mobicents/protocols/smpp/BadCommandIDException.java
http://mobicents.googlecode.com/ · Java · 62 lines · 28 code · 9 blank · 25 comment · 0 complexity · e91899521efb01fc8b0d297a2a45f1cf MD5 · raw file
- /*
- * JBoss, Home of Professional Open Source
- * Copyright 2011, Red Hat, Inc. and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
- package org.mobicents.protocols.smpp;
- /**
- * Thrown when an attempt is made to use an unimplemented command ID.
- * @version $Id: BadCommandIDException.java 452 2009-01-15 16:56:36Z orank $
- */
- public class BadCommandIDException extends SMPPRuntimeException {
- private static final long serialVersionUID = 3L;
- private int badId;
-
- public BadCommandIDException() {
- super();
- }
- public BadCommandIDException(String message, Throwable cause) {
- super(message, cause);
- }
- public BadCommandIDException(String message) {
- super(message);
- }
- public BadCommandIDException(Throwable cause) {
- super(cause);
- }
- public BadCommandIDException(String message, int badId) {
- super(message);
- this.badId = badId;
- }
- public BadCommandIDException(String message, Throwable cause, int badId) {
- super(message, cause);
- this.badId = badId;
- }
- public int getBadId() {
- return badId;
- }
- }