Package KFM.Exceptions

Examples of KFM.Exceptions.ProgrammerException


    //

    private void privateCheckHtml()
    {
        if(html == null) {
            throw new ProgrammerException(
                "Class Template: html is null. "
                + "Either you used `write� and `writeToString� more than once, "
                + " or you forgot to call startWithLanguage for '" + dir + "/" + namePrefix);
        }
    }
View Full Code Here


                Perl5Compiler.SINGLELINE_MASK | Perl5Compiler.CASE_INSENSITIVE_MASK);
        } catch(MalformedPatternException e) {
            System.err.println("LinkSearch.HtmlParser.match: Bad pattern: `" + e.getMessage() + "�.");
            //@@@ System.exit(1);
            //@@@ Make this cleaner some day.
            throw new ProgrammerException("LinkSearch.HtmlParser.match: Bad pattern: `" + e.getMessage() + "�.");
        }

        input = new PatternMatcherInput(text);
        // For debugging purposes.
        //  KFMSystem.log.debug( text);
View Full Code Here

                    }
                }
            }
            if (tDesktopValues.size() == 0)
            {
                throw new ProgrammerException("Desktop data are required for inserting members!");
            }
            mDbA.executeUpdate(mUpdateCmd);
            //now insert the desktop values
            String tMembersId = getMembersId(aNick, aWhere);
View Full Code Here

                return tRet;
            } else {
                mDbA.closeStmt(tCmd);

                if(aAttribute.isRequired()) {
                    throw new ProgrammerException("AttributedTable::getAttributeString: "
                        + "No attribute '" + tAttributeName
                        + "' for id '" + aId
                        + "' in tables '" + mTableName + "*'.");
                } else {
                    // @@@ Maybe `null�?
View Full Code Here

            // Now get the roles
            Vector tRoles = (Vector)mGadgetRoles.get(tID);

            if (tRoles == null)
                throw new ProgrammerException ("Wrong configuration. Gadget with id "
                    + tID + " has no roles assigned!");
            String [] tRolesVector = new String[tRoles.size()];
            tRoles.copyInto(tRolesVector);

            // Build the gadget
View Full Code Here

        boolean eraseLabel,
        String name,
        String value)
    {
        if(! templ.replaceKfm("action", eraseLabel ? "" : createSubmitbutton(name, value))) {
            throw new ProgrammerException(
                "TemplateHandler::setNextSubmitbutton: Could not replace action with name " + name
                + " and value " + value + ".");
        }
    }
View Full Code Here

        String aId,
        String aGuiName,
        boolean aRequired) // Might change to cardinality later.
    {
        if(aStorageType != inlined && aStorageType != dedicated && aStorageType != hashed) {
            throw new ProgrammerException("Attribute::Attribute: Illegal storage type.");
        }
       
        mStorageType = aStorageType;
        mId = aId;
        mGuiName = aGuiName;
View Full Code Here

            pattern = compiler.compile(patternString, Perl5Compiler.SINGLELINE_MASK );
        } catch(MalformedPatternException e) {
            System.err.println("LinkSearch.Item.match: Bad pattern: `" + e.getMessage() + "�.");
            //@@@ System.exit(1);
            //@@@ Make this cleaner some day.
            throw new ProgrammerException("LinkSearch.match: Bad pattern: `" + e.getMessage() + "�.");
        }

        input = new PatternMatcherInput(text);

        // When true, a match has been found.
View Full Code Here

    /** Deprecated. Do not use this!!!
     *
     *  @deprecated
     */
    private String getString(String aKey) {
        throw new ProgrammerException("KFM_ResourceBundleWrapper: Call of getString(String) is deprecated.");
    }
View Full Code Here

                String tKey = null;
                try {
                    tKey = Converter.decode(tInputFile.getName());
                } catch (Exception e) {
                    throw new ProgrammerException("FileCache::createOrReuseCacheDirectory(): "
                                                  + "Exception in Converter.decode()");
                }

                KFMSystem.log.info("FileCache::createOrReuseCacheDirectory(): reuse file from cache: " + tInputFile);
View Full Code Here

TOP

Related Classes of KFM.Exceptions.ProgrammerException

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.