/** * */ package at.gv.egiz.pdfas.exceptions; /** * Contains constants for the error codes. * *
* In Java 1.5 this would be an enum. *
* * @author wprinz */ public final class ErrorCode { public static final int EXTERNAL_ERROR = 0; public static final int SETTING_NOT_FOUND = 100; public static final int SETTINGS_EXCEPTION = 101; public static final int KZ_SETTING_NOT_FOUND = 102; public static final int DOCUMENT_CANNOT_BE_READ = 201; public static final int TEXT_EXTRACTION_EXCEPTION = 202; public static final int CANNOT_WRITE_PDF = 205; public static final int DOCUMENT_NOT_SIGNED = 206; public static final int SIGNATURE_TYPES_EXCEPTION = 223; public static final int SIGNATURE_COULDNT_BE_CREATED = 300; public static final int SIGNED_TEXT_EMPTY = 301; public static final int PROFILE_NOT_DEFINED = 302; public static final int SERIAL_NUMBER_INVALID = 303; public static final int SIG_CERTIFICATE_CANNOT_BE_READ = 304; public static final int COULDNT_VERIFY = 310; public static final int CERTIFICATE_NOT_FOUND = 313; public static final int NOT_SEMANTICALLY_EQUAL = 314; public static final int WEB_EXCEPTION = 330; public static final int NORMALIZER_EXCEPTION = 400; public static final int SESSION_EXPIRED = 600; public static final int PLACEHOLDER_EXCEPTION = 700; }