pl.edu.agh.cast.importer.base.exceptions
Class ConversionRuleException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by pl.edu.agh.cast.importer.base.exceptions.ConversionRuleException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EmptyValueConversionRuleException, WrongValueConversionRuleException

public class ConversionRuleException
extends Exception

Thrown when a ConversionRule tries to convert a given data row into a specified data type, which cannot be produced due to some problems (i.e. with type casting).

Author:
AGH CAST Team
See Also:
Serialized Form

Constructor Summary
ConversionRuleException()
          The default empty constructor.
ConversionRuleException(ErrorType errorType)
          Constructor.
ConversionRuleException(ErrorType errorType, String[] params)
          Constructor.
ConversionRuleException(String[] params)
          Constructs a new exception with the specified list of parameters.
 
Method Summary
 ErrorType getErrorType()
           
 String[] getParams()
           
 
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
 

Constructor Detail

ConversionRuleException

public ConversionRuleException()
The default empty constructor.


ConversionRuleException

public ConversionRuleException(String[] params)
Constructs a new exception with the specified list of parameters.

Parameters:
params - the parameters list

ConversionRuleException

public ConversionRuleException(ErrorType errorType)
Constructor.

Parameters:
errorType - error type

ConversionRuleException

public ConversionRuleException(ErrorType errorType,
                               String[] params)
Constructor.

Parameters:
errorType - error type
params - parameter list
Method Detail

getParams

public final String[] getParams()

getErrorType

public final ErrorType getErrorType()


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.