Package net.rim.tumbler.exception

Examples of net.rim.tumbler.exception.PackageException


            fos.close();
           
            _outputFiles.add(s);
        }
        catch (Exception e) {
            throw new PackageException(e, relativeFile);
        }
    }
View Full Code Here


        ZipFile zipFile;

        // check for file's existence
        if (!codFile.exists()) {
            throw new PackageException("EXCEPTION_COD_NOT_FOUND");
        } else {
            try {
                zipFile = new ZipFile(codFile);
                zipFile.close();
            } catch (Exception e) {
View Full Code Here

        _widgetArchive = getAbsolutePath(input1);
        _archiveName = parseWidgetName(_widgetArchive);

        Pattern patternWidgetName = Pattern.compile("[a-zA-Z][a-zA-Z0-9]*");
        if (!patternWidgetName.matcher(_archiveName).matches()) {
            throw new PackageException("EXCEPTION_INVALID_ARCHIVE_NAME");
        }

        // parse options
        try {
            parseOptionParameters(inputParams);
View Full Code Here

                        }
                    }
                }
            }
            if (_configXML.length == 0) {
                throw new PackageException("EXCEPTION_CONFIGXML_MISSING");
            }
        }
        catch (FileNotFoundException fnfe) {
            // already validated for existence of archive file - never get here
            Logger.logMessage(LogType.FATAL, "EXCEPTION_WIDGET_ARCHIVE_NOT_FOUND");
        }
        catch (IOException ioe) {
            throw new PackageException("EXCEPTION_ARCHIVE_IO", ioe);
        }
    }
View Full Code Here

TOP

Related Classes of net.rim.tumbler.exception.PackageException

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.