org.onebusaway.gtfs.csv.exceptions
Class CsvEntityException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.onebusaway.gtfs.csv.exceptions.CsvEntityException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AgencyNotFoundForRouteException, CsvEntityIOException, DateFieldMappingFactory.DateFieldMappingException, DuplicateEntityException, EntityInstantiationException, EntityReferenceNotFoundException, IntrospectionException, InvalidStopTimeException, MethodInvocationException, MissingRequiredEntityException, MissingRequiredFieldException, MultipleCalendarsForServiceIdException, NoCsvFieldsAnnotationException, NoDefaultAgencyIdException, NoDefaultConverterException, NoSuchPropertyException, RouteNameException, UnknownAgencyTimezoneException

public abstract class CsvEntityException
extends java.lang.RuntimeException

Extend from Exception or RuntimeException? The debate rages on, but I chose to extend from RuntimeException to maintain compatibility with existing method signatures and because most of the exceptions thrown here are non-recoverable. That is, you typically just log them and exit.

Author:
bdferris
See Also:
Serialized Form

Constructor Summary
CsvEntityException(java.lang.Class<?> entityType, java.lang.String message)
           
CsvEntityException(java.lang.Class<?> entityType, java.lang.String message, java.lang.Throwable cause)
           
CsvEntityException(java.lang.Class<?> entityType, java.lang.Throwable cause)
           
 
Method Summary
 java.lang.Class<?> getEntityType()
           
 
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

CsvEntityException

public CsvEntityException(java.lang.Class<?> entityType,
                          java.lang.String message)

CsvEntityException

public CsvEntityException(java.lang.Class<?> entityType,
                          java.lang.String message,
                          java.lang.Throwable cause)

CsvEntityException

public CsvEntityException(java.lang.Class<?> entityType,
                          java.lang.Throwable cause)
Method Detail

getEntityType

public java.lang.Class<?> getEntityType()


Copyright © 2011 OneBusAway. All Rights Reserved.