From d479253768d296a40b4f699e1de9b03c7146a97a Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Tue, 3 Dec 2013 14:03:28 -0800 Subject: Adding javadocs and Carbonado User Guide --- .../amazon/carbonado/spi/ExceptionTransformer.html | 387 +++++++++++++++++++++ 1 file changed, 387 insertions(+) create mode 100644 apidocs/com/amazon/carbonado/spi/ExceptionTransformer.html (limited to 'apidocs/com/amazon/carbonado/spi/ExceptionTransformer.html') diff --git a/apidocs/com/amazon/carbonado/spi/ExceptionTransformer.html b/apidocs/com/amazon/carbonado/spi/ExceptionTransformer.html new file mode 100644 index 0000000..c1966eb --- /dev/null +++ b/apidocs/com/amazon/carbonado/spi/ExceptionTransformer.html @@ -0,0 +1,387 @@ + + + + + + +ExceptionTransformer (Carbonado 1.2.3 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.amazon.carbonado.spi
+

Class ExceptionTransformer

+
+
+ +
+
    +
  • +
    +
    +
    public class ExceptionTransformer
    +extends java.lang.Object
    +
    Supports transforming arbitrary exceptions into appropriate repository + exceptions. Repositories will likely extend this class, providing custom + transformation rules.
    +
    Author:
    +
    Brian S O'Neill
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ExceptionTransformer

        +
        public ExceptionTransformer()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getInstance

        +
        public static ExceptionTransformer getInstance()
        +
        Returns a generic instance.
        +
      • +
      + + + +
        +
      • +

        toFetchException

        +
        public FetchException toFetchException(java.lang.Throwable e)
        +
        Transforms the given throwable into an appropriate fetch exception. If + it already is a fetch exception, it is simply casted.
        +
        Parameters:
        e - required exception to transform
        +
        Returns:
        FetchException, never null
        +
      • +
      + + + +
        +
      • +

        toPersistException

        +
        public PersistException toPersistException(java.lang.Throwable e)
        +
        Transforms the given throwable into an appropriate persist exception. If + it already is a persist exception, it is simply casted.
        +
        Parameters:
        e - required exception to transform
        +
        Returns:
        PersistException, never null
        +
      • +
      + + + +
        +
      • +

        toRepositoryException

        +
        public RepositoryException toRepositoryException(java.lang.Throwable e)
        +
        Transforms the given throwable into an appropriate repository + exception. If it already is a repository exception, it is simply casted.
        +
        Parameters:
        e - required exception to transform
        +
        Returns:
        RepositoryException, never null
        +
      • +
      + + + +
        +
      • +

        transformIntoFetchException

        +
        protected FetchException transformIntoFetchException(java.lang.Throwable e)
        +
        Override to support custom transformations, returning null if none is + applicable. Be sure to call super first. If it returns non-null, return + that result.
        +
        Parameters:
        e - required exception to transform
        +
        Returns:
        FetchException, or null if no applicable transform
        +
      • +
      + + + +
        +
      • +

        transformIntoPersistException

        +
        protected PersistException transformIntoPersistException(java.lang.Throwable e)
        +
        Override to support custom transformations, returning null if none is + applicable. Be sure to call super first. If it returns non-null, return + that result.
        +
        Parameters:
        e - required exception to transform
        +
        Returns:
        PersistException, or null if no applicable transform
        +
      • +
      + + + +
        +
      • +

        transformIntoRepositoryException

        +
        protected RepositoryException transformIntoRepositoryException(java.lang.Throwable e)
        +
        Override to support custom transformations, returning null if none is + applicable. Be sure to call super first. If it returns non-null, return + that result.
        +
        Parameters:
        e - required exception to transform
        +
        Returns:
        RepositoryException, or null if no applicable transform
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.

+ + -- cgit v1.2.3