*----------------------------------------------------------------------\r
*/\r
\r
-\r
/**\r
- * The <code>DecoderException</code> represents the class of\r
- * errors that can occur when decoding MPEG audio. \r
+ * The <code>DecoderException</code> represents the class of errors that can\r
+ * occur when decoding MPEG audio.\r
* \r
* @author MDM\r
*/\r
-public class DecoderException extends JavaLayerException\r
- implements DecoderErrors\r
-{ \r
- private int errorcode = UNKNOWN_ERROR;\r
- \r
- public DecoderException(String msg, Throwable t)\r
- {\r
- super(msg, t); \r
- }\r
- \r
- public DecoderException(int errorcode, Throwable t)\r
- {\r
- this(getErrorString(errorcode), t);\r
- this.errorcode = errorcode;\r
- }\r
- \r
- public int getErrorCode()\r
- {\r
- return errorcode; \r
- }\r
- \r
- \r
- static public String getErrorString(int errorcode)\r
- {\r
- // REVIEW: use resource file to map error codes\r
- // to locale-sensitive strings. \r
- \r
-// return "Decoder errorcode "+Integer.toHexString(errorcode);\r
- return "Decoder errorcode "+errorcode;\r
- }\r
- \r
- \r
-}\r
+public class DecoderException extends JavaLayerException implements DecoderErrors {\r
+ private int errorcode = UNKNOWN_ERROR;\r
+\r
+ public DecoderException(String msg, Throwable t) {\r
+ super(msg, t);\r
+ }\r
+\r
+ public DecoderException(int errorcode, Throwable t) {\r
+ this(getErrorString(errorcode), t);\r
+ this.errorcode = errorcode;\r
+ }\r
\r
+ public int getErrorCode() {\r
+ return errorcode;\r
+ }\r
+\r
+ static public String getErrorString(int errorcode) {\r
+ // REVIEW: use resource file to map error codes\r
+ // to locale-sensitive strings.\r
+\r
+ // return "Decoder errorcode "+Integer.toHexString(errorcode);\r
+ return "Decoder errorcode " + errorcode;\r
+ }\r
+\r
+}\r