001    package railo.runtime.err;
002    
003    import railo.runtime.PageSource;
004    
005    /**
006     * represent a Error Page
007     */
008    public interface ErrorPage {
009    
010            public static final short TYPE_EXCEPTION=1;
011            public static final short TYPE_REQUEST=2;
012            public static final short TYPE_VALIDATION=4;
013            
014        /**
015         * sets the mailto attribute
016         * @param mailto
017         */
018        public abstract void setMailto(String mailto);
019    
020        /**
021         * sets the template attribute
022         * @param template
023         */
024        public abstract void setTemplate(PageSource template);
025    
026        /**
027         * sets the exception attribute
028         * @param exception
029         * @deprecated use instead <code>setException(String exception);</code>
030         */
031        public abstract void setTypeAsString(String exception);
032        
033        /**
034         * sets the exception attribute
035         * @param exception
036         */
037        public abstract void setException(String exception);
038    
039        /**
040         * @return Returns the mailto.
041         */
042        public abstract String getMailto();
043    
044        /**
045         * @return Returns the template.
046         */
047        public abstract PageSource getTemplate();
048    
049        /**
050         * @return Returns the exception type.
051         * @deprecated use instead <code>getException();</code>
052         */
053        public abstract String getTypeAsString();
054    
055        /**
056         * @return Returns the exception type.
057         */
058        public abstract String getException();
059        
060            public void setType(short type);
061            
062            public short getType();
063    
064    }