public static void initThisExceptionHandler(ExceptionHandlerInterface handler) { try { handler.addException(new СonversionError()); handler.addException(new InsufficientPermissionsException()); handler.addException(new IncorrectOldPassword()); handler.addException(new IncorrectUserData()); handler.addException(new ViewAlreadyAddedException()); handler.addException(new NoConfigurationSpecified()); handler.addException(new NotFoundView()); handler.addException(new ViewsHistoryIsEmtptyException()); handler.addException(new NoDataBaseConnection()); handler.addException(new DatabaseQueryError()); handler.addException(new NotSupportKeysLength()); handler.addException(new NotEnoughTablesExeption()); handler.addException(new AdminIsNotExist()); handler.addException(new BadCheckedPasswords()); handler.addException(new GoTestObjectNotFound()); handler.addException(new QuestionTypeException()); handler.addException(new NotEnoughQuestions()); handler.addException(new ParamsTypesExceptions()); handler.addException(new NotApprowedObjectsFound()); handler.addException(new NotEnoughBasicObjects()); handler.addException(new ObjectAlreadyCreated()); handler.addException(new NotAllAreasIsFill()); handler.addException(new ObjectNotValid()); } catch (Exception ex) { ExceptionHandler.getInstance().processing(ex); } }
public static void initThisExceptionHandler(ExceptionHandlerInterface handler) { try { handler.addException(new UnknownTimeIntervalType()); handler.addException(new NoConfigurationSpecified()); handler.addException(new InvalidArraySize()); handler.addException(new NoDataBaseConnection()); handler.addException(new NoFilesConnection()); handler.addException(new ErrorWithFile()); handler.addException(new NotEnoughDataToAnalyze()); handler.addException(new IncorrectFormatOperation()); handler.addException(new NotEnoughMemoryInTheModelingElement()); handler.addException(new UnknownOperation()); handler.addException(new UsingCovarianceInsteadOfCorrelation()); handler.addException(new NotFoundView()); handler.addException(new ViewAlreadyAddedException()); handler.addException(new ViewsHistoryIsEmtptyException()); handler.addException(new IncorrectOldPassword()); handler.addException(new IncorrectUserData()); handler.addException(new InsufficientPermissionsException()); handler.addException(new BadCheckedPasswords()); handler.addException(new ValueMastBeANumberException()); handler.addException(new DatabaseQueryError()); } catch (Exception ex) { ExceptionHandler.getInstance().processing(ex); } }
public static void initThisExceptionHandler(ExceptionHandlerInterface handler) { try { handler.addException(new NoConfigurationSpecified()); handler.addException(new ConnectionErrorToFile()); handler.addException(new DatabaseQueryError()); handler.addException(new NoDataBaseConnection()); handler.addException(new WindowsCommandLineError()); } catch (Exception ex) { ExceptionHandler.getInstance().processing(ex); } }