1 package org.bouncycastle.util.encoders; 2 3 /** 4 * Exception thrown if an attempt is made to decode invalid data, or some other failure occurs. 5 */ 6 public class DecoderException 7 extends IllegalStateException 8 { 9 private Throwable cause; 10 11 DecoderException(String msg, Throwable cause) 12 { 13 super(msg); 14 15 this.cause = cause; 16 } 17 18 public Throwable getCause() 19 { 20 return cause; 21 } 22 } 23