Interface ErrorHandling

All Superinterfaces:
Prototype.Api
All Known Implementing Classes:
ErrorHandling.BuilderBase.ErrorHandlingImpl

public interface ErrorHandling extends Prototype.Api
Interface generated from definition. Please add javadoc to the definition interface.
See Also:
  • Method Details

    • builder

      static ErrorHandling.Builder builder()
      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      static ErrorHandling.Builder builder(ErrorHandling instance)
      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static ErrorHandling create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      static ErrorHandling create()
      Create a new instance with default values.
      Returns:
      a new instance
    • includeEntity

      boolean includeEntity()
      Whether to include a response entity when mapping a RequestException using a DirectHandler. Response entities may include data that is reflected back from the original request, albeit escaped to prevent potential attacks.
      Returns:
      include entity flag
    • logAllMessages

      boolean logAllMessages()
      Whether to log all messages in a RequestException or not. If set to false, only those that return true for RequestException.safeMessage() are logged.