Back to project page steamchat.
The source code is released under:
Apache License
If you think the Android project steamchat listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.kevelbreh.steamchat.steam.security; //w w w . j ava 2 s .c om public final class BerDecodeException extends Exception { private static final long serialVersionUID = -2265804415271565348L; private final int _position; public BerDecodeException() { _position = 0; } public BerDecodeException(String message) { super(message); _position = 0; } public BerDecodeException(String message, Exception ex) { super(message, ex); _position = 0; } public BerDecodeException(String message, int position) { super(message); _position = position; } public BerDecodeException(String message, int position, Exception ex) { super(message, ex); _position = position; } @Override public String getMessage() { final StringBuilder sb = new StringBuilder(super.getMessage()); sb.append(String.format(" (Position %d)%s", _position, System.getProperty("line.separator"))); return sb.toString(); } }