/*
* Created by Andrey Cherkashin (acherkashin)
* http://acherkashin.me
*
* License
* Copyright (c) 2015 Andrey Cherkashin
* The project released under the MIT license: http://opensource.org/licenses/MIT
*/
package ragefist.packets;
/**
*
* @author acherkashin
*/
public class IncomingPacketException extends Exception
{
private final String _code;
public IncomingPacketException(String code, String message) {
super(message);
_code = code;
}
public IncomingPacketException(String code) {
this(code, null);
}
public final String getCode() {
return _code;
}
}