GiciException
Class WarningException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by GiciException.WarningException
All Implemented Interfaces:
java.io.Serializable

public class WarningException
extends java.lang.Exception

This class is an exception for warning messages. It must be used only when program execution can continue.

Version:
1.1
Author:
Group on Interactive Coding of Images (GICI)
See Also:
Serialized Form

Field Summary
(package private)  int errorCode
          An error code.
 
Constructor Summary
WarningException()
          Default constructor.
WarningException(java.lang.String message)
          Constructor with message.
WarningException(java.lang.String message, int errorCode)
          Constructor with error code and message.
 
Method Summary
 int getErrorCode()
          Returns the error code of this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

errorCode

int errorCode
An error code.

Values are usually defined by the application which uses this class. If this parameter is not set, the value is -1.

Constructor Detail

WarningException

public WarningException()
Default constructor. When an exception without any message is thrown, a default message will be used.


WarningException

public WarningException(java.lang.String message)
Constructor with message. The message will be passed through Exception class.

Parameters:
message - an string that contains the message exception

WarningException

public WarningException(java.lang.String message,
                        int errorCode)
Constructor with error code and message. The message will be passed through the Exception class.

Parameters:
message - an string that contains the message exception
errorCode - the error code
Method Detail

getErrorCode

public int getErrorCode()
Returns the error code of this exception.

Returns:
errorCode defined in errorCode


TER - Copyright (C) 2006
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Group on Interactive Coding of Images (GICI) - UAB (Spain)