Package br.com.caelum.vraptor.vraptor2

Examples of br.com.caelum.vraptor.vraptor2.ConfigException


     */
    public void setEmulation(int bootMediaType) throws ConfigException {
        if (bootMediaType >= 0 && bootMediaType <= 4) {
            this.bootMediaType = bootMediaType;
        } else {
            throw new ConfigException(this, "Invalid Boot Media Type: " + bootMediaType);
        }
    }
View Full Code Here


     * @throws ConfigException Invalid UCS-2 level
     * @see http://www.nada.kth.se/i18n/ucs/unicode-iso10646-oview.html
     */
    public void setUCS2Level(int level) throws ConfigException {
        if (level != 1 && level != 2 && level != 3) {
            throw new ConfigException(this, "Invalid UCS-2 level: " + level);
        }
        this.ucs2_level = level;
    }
View Full Code Here

        return new ByteArrayDataReference(UCS2_LEVEL_ESCAPE_SEQUENCES[ucs2_level - 1]);
    }

    public void setVolumeSetID(String volumeSetID) throws ConfigException {
        if (volumeSetID.length() > 64) {
            throw new ConfigException(this, "The Volume Set ID may be no longer than 64 characters.");
        }
        super.setVolumeSetID(volumeSetID);
    }
View Full Code Here

        super.setVolumeSetID(volumeSetID);
    }

    public void setApp(String app) throws ConfigException {
        if (app.length() > 64) {
            throw new ConfigException(this, "The Application Identifier may be no longer than 64 characters.");
        }
        super.setApp(app);
    }
View Full Code Here

        super.setApp(app);
    }

    public void setDataPreparer(String dataPreparer) throws ConfigException {
        if (dataPreparer.length() > 64) {
            throw new ConfigException(this, "The Data Preparer Identifier may be no longer than 64 characters.");
        }
        super.setDataPreparer(dataPreparer);
    }
View Full Code Here

        super.setDataPreparer(dataPreparer);
    }

    public void setPublisher(String publisher) throws ConfigException {
        if (publisher.length() > 64) {
            throw new ConfigException(this, "The Publisher Identifier may be no longer than 64 characters.");
        }
        super.setPublisher(publisher);
    }
View Full Code Here

        super.setPublisher(publisher);
    }

    public void setSystemID(String systemID) throws ConfigException {
        if (systemID.length() > 16) {
            throw new ConfigException(this, "The System Identifier may be no longer than 16 characters.");
        }
        super.setSystemID(systemID);
    }
View Full Code Here

        super.setSystemID(systemID);
    }

    public void setVolumeID(String volumeID) throws ConfigException {
        if (volumeID.length() > 16) {
            throw new ConfigException(this, "The Volume Identifier may be no longer than 16 characters.");
        }
        super.setVolumeID(volumeID);
    }
View Full Code Here

     *
     * @throws com.github.stephenc.javaisotools.iso9660.ConfigException Invalid or unsupported Interchange Level
     */
    public void setInterchangeLevel(int level) throws ConfigException {
        if (level < 1 || level > 3) {
            throw new ConfigException(this, "Invalid ISO9660 Interchange Level: " + level);
        }
        if (level == 3) {
            throw new ConfigException(this,
                    "Interchange Level 3 (multiple File Sections per file) is not (yet) supported by this implementation.");
        }
        ISO9660NamingConventions.INTERCHANGE_LEVEL = level;
    }
View Full Code Here

     *
     * @throws ConfigException Invalid length
     */
    public void setMaxDirectoryLength(int length) throws ConfigException {
        if (length < 0) {
            throw new ConfigException(this, "Invalid maximum directory length: " + length);
        }
        RockRidgeNamingConventions.MAX_DIRECTORY_LENGTH = length;
    }
View Full Code Here

TOP

Related Classes of br.com.caelum.vraptor.vraptor2.ConfigException

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.