/** * */ 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 UNKNOWN_ERROR = 6; public static final int OUT_OF_MEMORY_ERROR = 7; 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 NO_EMBEDABLE_TTF_CONFIGURED_FOR_PDFA = 103; public static final int INVALID_SIGNATURE_LAYOUT_IMPL_CONFIGURED = 104; 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 FONT_NOT_FOUND = 230; public static final int DOCUMENT_IS_PROTECTED = 231; public static final int INVALID_SIGNATURE_DICTIONARY = 232; //23.11.2010 changed by exthex - added error code for failed extraction public static final int SIGNATURE_PLACEHOLDER_EXTRACTION_FAILED = 233; public static final int INVALID_SIGNATURE_POSITION = 224; 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 PROFILE_NOT_USABLE_FOR_TEXT = 305; 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 MODIFIED_AFTER_SIGNATION = 316; public static final int NON_BINARY_SIGNATURES_PRESENT = 317; public static final int UNSUPPORTED_REPLACES_NAME = 318; public static final int UNSUPPORTED_SIGNATURE = 319; public static final int SIGNATURE_VERIFICATION_NOT_SUPPORTED = 371; public static final int INVALID_SIGNING_TIME = 372; public static final int BKU_NOT_SUPPORTED = 373; public static final int WEB_EXCEPTION = 330; public static final int UNABLE_TO_RECEIVE_SUITABLE_RESPONSE = 340; public static final int NORMALIZER_EXCEPTION = 400; public static final int SESSION_EXPIRED = 600; public static final int PLACEHOLDER_EXCEPTION = 700; public static final int CAPTION_NOT_FOUND_EXCEPTION = 701; public static final int UNABLE_TO_PARSE_ID = 800; public static final int CORRECTOR_EXCEPTION = 801; public static final int EXTERNAL_CORRECTOR_TIMEOUT_REACHED = 802; }