/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: LogException.java,v 1.3 2008/06/25 05:41:32 qcheng Exp $
*
*/
/**
* The applications may encounter errors when they are denied for
* a log access because they don't have the access privileges or
* when they do not have a valid session. The applications may also
* encounter errors when the logging server is not able response to
* the applications' request or for some other reasons. This
* LogException class provides the method for detecting such errors.
*
* @supported.all.api
*/
/**
* Invalid session.
*/
/**
* Log already exists.
*/
/**
* Log is in inactive state, preventing log submission.
*/
/**
* Log handler error.
*/
/**
* Log submission error.
*/
/**
* Log Retrieval error.
*/
/**
* Log deletion error.
*/
/**
* Log list does not exist.
*/
/**
* Log type error.
*/
/**
* Log creation privilege is denied.
*/
/**
* Log submition privilege is denied.
*/
/**
* Log retrieval privilege is denied.
*/
/**
* Log listing privilege is denied.
*/
/**
* Log profile error.
*/
/**
* No such log exists.
*/
/**
* No such log segment exists.
*/
/**
* Log deletion privilege is denied.
*/
/**
* Log name is in valid.
*/
/**
* Log retrieval size (in bytes) exceeds the maximum allowed.
*/
/**
* Log JDBC driver loading failed.
static public final int DRIVER_LOAD_FAILED = 519;
/**
* Log JDBC driver null location.
*/
/**
* Log JDBC driver connection failed.
*/
/**
* Log JDBC null pointer.
*/
/**
* Log SQL error
* /
static public final int SQL_ERROR = 523;
/**
* Other unknown fatal error.
*/
private int excep_type;
/**
* Constructs a log exception.
*/
public LogException() {
super();
}
/**
* Constructs a log exception.
*
* @param msg Log exception message.
*/
super(msg);
excep_type = 0;
}
/**
* Constructs a log exception.
*
* @param msg Exception message.
* @param type Log exception type.
*/
super(msg);
excep_type = type;
}
/**
* Returns log exception type.
*
* @return Log exception type.
*/
public int getType() {
return excep_type;
}
}