Enum Class ServerConfiguration.ApplicationExceptionPolicy

java.lang.Object
java.lang.Enum<ServerConfiguration.ApplicationExceptionPolicy>
ca.uhn.hl7v2.app.ServerConfiguration.ApplicationExceptionPolicy
All Implemented Interfaces:
Serializable, Comparable<ServerConfiguration.ApplicationExceptionPolicy>, Constable
Enclosing class:
ServerConfiguration

See Also:
  • Enum Constant Details

    • DEFAULT

      The DEFAULT behaviour is to invoke the exception handler if one has been registered with the server, and then return the ACK/NAK message it provides. If no exception handler has been provided, HAPI will generate a NAK message using the default implementation and an AE acknowlegement code.
    • DO_NOT_RESPOND

      If set to DO_NOT_RESPOND, the server will simply not provide any response to the client in the event that an application exception is thrown.

      Note that this is not generally good practice, but it may be neccesary when dealing with some systems that don't behave correctly when they receive a negative acknowledment (NAK) message. Use with caution!

  • Method Details

    • values

      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null