170c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrompackage org.bouncycastle.util.encoders; 270c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom 3d001700a15b8bd733ae344c1fc315b97c43c6590Kenny Root/** 4d001700a15b8bd733ae344c1fc315b97c43c6590Kenny Root * Exception thrown if an attempt is made to decode invalid data, or some other failure occurs. 5d001700a15b8bd733ae344c1fc315b97c43c6590Kenny Root */ 670c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrompublic class DecoderException 770c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom extends IllegalStateException 870c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom{ 970c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom private Throwable cause; 1070c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom 1170c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom DecoderException(String msg, Throwable cause) 1270c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom { 1370c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom super(msg); 1470c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom 1570c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom this.cause = cause; 1670c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom } 1770c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom 1870c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom public Throwable getCause() 1970c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom { 2070c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom return cause; 2170c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom } 2270c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom} 23