1 2 24 25 26 27 28 package com.lutris.mime; 29 30 35 public class MimeException extends Exception  36 { 37 40 public static final int GENERIC = 0; 41 42 45 public static final int INVALID_HEADER = 1; 46 47 53 public static final int INVALID_MIME_TYPE = 2; 54 55 58 public int reason = GENERIC; 59 60 67 MimeException(String s, int reason) 68 { 69 super(s); 70 this.reason = reason; 71 } 72 73 79 MimeException(String s) 80 { 81 super(s); 82 reason = GENERIC; 83 } 84 85 91 MimeException() 92 { 93 super(); 94 reason = GENERIC; 95 } 96 } 97 | Popular Tags |