Package com.ecyrd.jspwiki

Examples of com.ecyrd.jspwiki.InternalWikiException


        }
        catch( Throwable t )
        {
            System.err.println( "Background thread error: (stack trace follows)" );
            t.printStackTrace();
            throw new InternalWikiException( t.getMessage() );
        }
    }
View Full Code Here


        catch( JDOMException e )
        {
            // If we couldn't evaluate constraints it means
            // there's some sort of IO mess or parsing issue
            LOG.error( "Malformed XML in web.xml", e );
            throw new InternalWikiException( e.getClass().getName() + ": " + e.getMessage() );
        }

        s.append( "</tbody>\n" );
        s.append( "</table>\n" );
        return s.toString();
View Full Code Here

        else if( context.equals(WikiContext.VIEW_GROUP) )
        {
            return doReplacement( viewurl+"?do=Group&group=%n", name, absolute );
        }
       
        throw new InternalWikiException("Requested unsupported context "+context);
    }
View Full Code Here

            case DATE:
                prefDateFormat = imgr.get( "common.dateformat" );
                break;
               
            default:
                throw new InternalWikiException( "Got a TimeFormat for which we have no value!" );
        }
       
        try
        {
            SimpleDateFormat fmt = new SimpleDateFormat( prefDateFormat, clientLocale );
View Full Code Here

            case URL:
                out.print( getCommentURL(pageName) );
                break;
               
            default:
                throw new InternalWikiException("Impossible format "+m_format);
           
        }

        return EVAL_BODY_INCLUDE;
    }
View Full Code Here

                case NOTFIRST:
                    include = version > 1;
                    break;
               
                default:
                    throw new InternalWikiException("Mode which is not available!");
            }

            if( include )
            {
                // log.debug("INCLD");
View Full Code Here

            }
        }
        catch ( IOException e )
        {
            log.error("Initialization failed: ",e);
            throw new InternalWikiException( e.getClass().getName()+": "+e.getMessage() );
        }
        catch ( JDOMException e )
        {
            log.error("Malformed XML in web.xml",e);
            throw new InternalWikiException( e.getClass().getName()+": "+e.getMessage() );
        }

        if ( m_containerRoles.length > 0 )
        {
            String roles = "";
View Full Code Here

        if( name == null || template == null )
        {
            log.fatal("findJSP() was asked to find a null template or name ("+template+","+name+")."+
                      " JSP page '"+
                      ((HttpServletRequest)pageContext.getRequest()).getRequestURI()+"'");
            throw new InternalWikiException("Illegal arguments to findJSP(); please check logs.");
        }

        return findResource( pageContext.getServletContext(), template, name );
    }
View Full Code Here

            }
        }
        catch( IOException e )
        {
            m_log.error( "Unable to create context", e );
            throw new InternalWikiException( "Big internal booboo, please check logs." );
        }

        // Didn't resolve; return null
        return null;
    }
View Full Code Here

TOP

Related Classes of com.ecyrd.jspwiki.InternalWikiException

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.