//# 0 errors, 19 messages
//#
/*
    //#UnauthorizedException.java:1:1: class: org.apache.roller.weblogger.webservices.adminprotocol.UnauthorizedException
    //#UnauthorizedException.java:1:1: method: org.apache.roller.weblogger.webservices.adminprotocol.UnauthorizedException.org.apache.roller.weblogger.webservices.adminprotocol.UnauthorizedException__static_init
* Licensed to the Apache Software Foundation (ASF) under one or more
*  contributor license agreements.  The ASF licenses this file to You
* under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.  For additional information regarding
* copyright in this work, please see the NOTICE file in the top level
* directory of this distribution.
*/
package org.apache.roller.weblogger.webservices.adminprotocol;

import javax.servlet.http.HttpServletResponse;

/**
 * Indicates to client that an internal error occured when processing
 * the request.
 */
public class UnauthorizedException extends HandlerException { 
    public UnauthorizedException(String msg) {
        super(msg);
    //#UnauthorizedException.java:28: method: void org.apache.roller.weblogger.webservices.adminprotocol.UnauthorizedException.org.apache.roller.weblogger.webservices.adminprotocol.UnauthorizedException(String)
    //#input(void org.apache.roller.weblogger.webservices.adminprotocol.UnauthorizedException(String)): msg
    //#input(void org.apache.roller.weblogger.webservices.adminprotocol.UnauthorizedException(String)): this
    //#unanalyzed(void org.apache.roller.weblogger.webservices.adminprotocol.UnauthorizedException(String)): Effects-of-calling:java.lang.Exception
    }    
    //#UnauthorizedException.java:29: end of method: void org.apache.roller.weblogger.webservices.adminprotocol.UnauthorizedException.org.apache.roller.weblogger.webservices.adminprotocol.UnauthorizedException(String)
    
    public int getStatus() {
        return HttpServletResponse.SC_UNAUTHORIZED;
    //#UnauthorizedException.java:32: method: int org.apache.roller.weblogger.webservices.adminprotocol.UnauthorizedException.getStatus()
    //#output(int getStatus()): return_value
    //#post(int getStatus()): return_value == 401
    //#UnauthorizedException.java:32: end of method: int org.apache.roller.weblogger.webservices.adminprotocol.UnauthorizedException.getStatus()
    }
}
    //#output(org.apache.roller.weblogger.webservices.adminprotocol.UnauthorizedException__static_init): __Descendant_Table[org/apache/roller/weblogger/webservices/adminprotocol/UnauthorizedException]
    //#output(org.apache.roller.weblogger.webservices.adminprotocol.UnauthorizedException__static_init): __Dispatch_Table.getStatus()I
    //#output(org.apache.roller.weblogger.webservices.adminprotocol.UnauthorizedException__static_init): org/apache/roller/weblogger/webservices/adminprotocol/HandlerException.__Descendant_Table[org/apache/roller/weblogger/webservices/adminprotocol/UnauthorizedException]
    //#post(org.apache.roller.weblogger.webservices.adminprotocol.UnauthorizedException__static_init): __Descendant_Table[org/apache/roller/weblogger/webservices/adminprotocol/UnauthorizedException] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.webservices.adminprotocol.UnauthorizedException__static_init): org/apache/roller/weblogger/webservices/adminprotocol/HandlerException.__Descendant_Table[org/apache/roller/weblogger/webservices/adminprotocol/UnauthorizedException] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.webservices.adminprotocol.UnauthorizedException__static_init): __Dispatch_Table.getStatus()I == &getStatus
    //#UnauthorizedException.java:: end of method: org.apache.roller.weblogger.webservices.adminprotocol.UnauthorizedException.org.apache.roller.weblogger.webservices.adminprotocol.UnauthorizedException__static_init
    //#UnauthorizedException.java:: end of class: org.apache.roller.weblogger.webservices.adminprotocol.UnauthorizedException
