KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > log4j > spi > ErrorCode


1 /*
2  * Copyright 1999-2005 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.log4j.spi;
18
19
20 /**
21    This interface defines commonly encoutered error codes.
22
23    @author Ceki Gülcü
24    @since 0.9.0
25  */

26 public interface ErrorCode {
27
28   public final int GENERIC_FAILURE = 0;
29   public final int WRITE_FAILURE = 1;
30   public final int FLUSH_FAILURE = 2;
31   public final int CLOSE_FAILURE = 3;
32   public final int FILE_OPEN_FAILURE = 4;
33   public final int MISSING_LAYOUT = 5;
34   public final int ADDRESS_PARSE_FAILURE = 6;
35 }
36
Popular Tags