Class ExceptionalDataContext

  • All Implemented Interfaces:
    DataContext

    public class ExceptionalDataContext
    extends LazyLoadedDataContext
    implements DataContext
    A data context that always throws a runtime exception when it's methods are used. Can be useful for determining if the default data context is used. E.g. DataContext.setDefault(new ExceptionalDataContext());. The following classes have static fields that are initialized using the default data context:
    Since:
    10.1
    Author:
    Evan Ward
    See Also:
    DataContext.setDefault(LazyLoadedDataContext)