Uses of Class
spark.HaltException

Packages that use HaltException
Package
Description
 
 
  • Uses of HaltException in spark

    Methods in spark that return HaltException
    Modifier and Type
    Method
    Description
    Service.halt()
    Immediately stops a request within a filter or route NOTE: When using this don't catch exceptions of type HaltException, or if catched, re-throw otherwise halt will not work
    Service.halt(int status)
    Immediately stops a request within a filter or route with specified status code NOTE: When using this don't catch exceptions of type HaltException, or if catched, re-throw otherwise halt will not work
    Service.halt(int status, String body)
    Immediately stops a request within a filter or route with specified status code and body content NOTE: When using this don't catch exceptions of type HaltException, or if catched, re-throw otherwise halt will not work
    Service.halt(String body)
    Immediately stops a request within a filter or route with specified body content NOTE: When using this don't catch exceptions of type HaltException, or if catched, re-throw otherwise halt will not work
    Spark.halt()
    Immediately stops a request within a filter or route NOTE: When using this don't catch exceptions of type HaltException, or if catched, re-throw otherwise halt will not work
    Spark.halt(int status)
    Immediately stops a request within a filter or route with specified status code NOTE: When using this don't catch exceptions of type HaltException, or if catched, re-throw otherwise halt will not work
    Spark.halt(int status, String body)
    Immediately stops a request within a filter or route with specified status code and body content NOTE: When using this don't catch exceptions of type HaltException, or if catched, re-throw otherwise halt will not work
    Spark.halt(String body)
    Immediately stops a request within a filter or route with specified body content NOTE: When using this don't catch exceptions of type HaltException, or if catched, re-throw otherwise halt will not work
  • Uses of HaltException in spark.http.matching

    Methods in spark.http.matching with parameters of type HaltException
    Modifier and Type
    Method
    Description
    static void
    Halt.modify(jakarta.servlet.http.HttpServletResponse httpResponse, Body body, HaltException halt)
    Modifies the HTTP response and body based on the provided HaltException.