001    //$HeadURL: svn+ssh://rbezema@svn.wald.intevation.org/deegree/base/tags/2.1/src/org/deegree/security/UnauthorizedException.java $
002    package org.deegree.security;
003    
004    import org.deegree.framework.util.StringTools;
005    
006    /**
007     * Marks that the requested operation is not permitted.
008     * <p>
009     * 
010     * @author <a href="mailto:mschneider@lat-lon.de">Markus Schneider</a>
011     * @version $Revision: 6364 $
012     */
013    public class UnauthorizedException extends GeneralSecurityException {
014    
015        /**
016         * 
017         */
018        String message = null;
019    
020        /**
021         * 
022         */
023        public UnauthorizedException() {
024            super();
025        }
026    
027        /**
028         * @param message
029         */
030        public UnauthorizedException( String message ) {
031            this.message = message;
032        }
033    
034        /**
035         * @param message
036         * @param arg1
037         */
038        public UnauthorizedException( String message, Throwable arg1 ) {
039            super( message, arg1 );
040            this.message = message + StringTools.stackTraceToString( arg1 );
041        }
042    
043        /**
044         * @param arg0
045         */
046        public UnauthorizedException( Throwable arg0 ) {
047            super( StringTools.stackTraceToString( arg0 ) );
048        }
049    
050        /**
051         * @return message
052         */
053        public String getMessage() {
054            return message;
055        }
056    
057    }