Class BadGatewayException

  • All Implemented Interfaces:
    Serializable

    public class BadGatewayException
    extends RuntimeException
    Project-custom exception that allows outbound APIs to react on backend problems. Shall be thrown to invoke status 502 "Bad gateway" or whatever is appropriate. Proxied connection failed, e.g. the server could not contact the clustered note that processes the specified query (EhrScape API example).
    See Also:
    Serialized Form
    • Constructor Detail

      • BadGatewayException

        public BadGatewayException​(String message)
      • BadGatewayException

        public BadGatewayException​(String message,
                                   Throwable cause)