Package com.nexirius.framework.application

Examples of com.nexirius.framework.application.ErrorMessageException


                    }
                } catch (Exception e) {
                    if (e instanceof ErrorMessageException) {
                        throw (ErrorMessageException)e;
                    } else {
                        throw new ErrorMessageException("Error: " + e.getMessage(), e, null);
                    }
                }
            }
            okPressed = true;
            popdown();
View Full Code Here


                }

                if (retry <= 0) {
                    String message = toString();
                    parameters = null;
                    throw new ErrorMessageException(message, sqlEx, null);
                }
            }

        }
View Full Code Here

                try {
                    parameter.setParameter();
                } catch (SQLException e) {
                    String message = toString();
                    parameters = null;
                    throw new ErrorMessageException(message, e, null);
                }
            }
        }
    }
View Full Code Here

    public void generateXml(OutputStream out, DataModel model) {
        Class clazz = model.getClass();
        IXmlGenerator generator = getGenerator(clazz);

        if (generator == null) {
            throw new ErrorMessageException("No generator for {0}", null, new Object[]{clazz});
        } else {
            try {
                generator.generateXml(this, out, model);
            } catch (Exception e) {
                throw new ErrorMessageException("Error generating {0}", e, new Object[]{model.toString()});
            }
        }
    }
View Full Code Here

            try {
                new XFile(dbDirName).mkdirs();
                dbFile.createFrom(stream);
            } catch (IOException e) {
                throw new ErrorMessageException("Cannot initialize database", e, null);
            }
        }

        try {
            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
View Full Code Here

                        array.append(lineModel);
                    }
                }

                if (maxLineModel == null) {
                    throw new ErrorMessageException("No data found", null, null);
                }

                array.setMemberFieldNames(maxLineModel.getFullFieldName());

                importModel.setMaxAttributes(maxAttributes);
View Full Code Here

            DataModel child = en.next();
            DataModel other = (DataModel) copyPairs.getCopy(child);

            if (other == null) {
                System.out.println("copyPairs = " + copyPairs);
                throw new ErrorMessageException("No duplicate value of child " + child.getFieldName(), null, null);
            }

            child.assignDuplicate(other, copyPairs);
        }
View Full Code Here

        try {
            entryArray.readEntries(getFilename(fileName, null));
            readLocaleEntries(fileName);
        } catch (Exception e) {
            throw new ErrorMessageException("CannotRead{0}", e, new Object[] {fileName});
        }
        openFileName = fileName;
        needSaving.setBoolean(false);
        title.setText(fileName);
    }
View Full Code Here

            try {
                entryArray.saveTo(getFilename(fileName, locale), locale);

                needSaving.setBoolean(false);
            } catch (Exception ex) {
                throw new ErrorMessageException("CannotWrite{0}", ex, new String[]{file.toString()}) ;
            }
        } else {
            throw new ErrorMessageException("CannotWrite{0}", null, new String[]{file.toString()}) ;
        }
    }
View Full Code Here

TOP

Related Classes of com.nexirius.framework.application.ErrorMessageException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.