Skip navigation links

Package org.odpi.openmetadata.frameworks.governanceaction.ffdc

Package org.apache.atlas.gaf.ffdc provides the first failure data capture support for the GAF module.

See: Description

Package org.odpi.openmetadata.frameworks.governanceaction.ffdc Description

Package org.apache.atlas.gaf.ffdc provides the first failure data capture support for the GAF module. This includes an error code enum, a runtime exception, a base class for checked exceptions plus implementation of each specific checked exception. The error code enum (GAFErrorCode) has an entry for each unique situation where an exception is returned. Each entry defines: * A unique id for the error * An HTTP error code for rest calls * A unique message Id * Message text with place holders for specific values * A description of the cause of the error and system action as a result. * A description of how to correct the error (if known) Each exception (whether a checked or runtime exception) has two constructors. * The first constructor is used when a new error has been detected. * The second constructor is used when another exception has been caught. This caught exception is passed on the constructor so it is effectively embedded in the GAF exception. Both constructors take the values from the GAFErrorCode enum to define the cause and resolution. These values are passed as individual parameters so that subclasses implemented outside of the GAF packages can define their own FFDC values.
Skip navigation links

Copyright © 2018–2020 ODPi. All rights reserved.