Codota Logo
error.render
Code IndexAdd Codota to your IDE (free)

How to use
render
method
in
views.html.defaultpages.error

Best Java code snippets using views.html.defaultpages.error.render (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: com.typesafe.play/play_2.11

/**
 * Invoked in prod mode when a server error occurs.
 * <p>
 * The base implementation returns {@code Results.internalServerError} with the content of {@code views.html.defaultpages.error} template.
 * </p>
 * <p>
 * Override this rather than [[onServerError()]] if you don't want to change Play's debug output when logging errors
 * in dev mode.
 *
 * @param request   The request that triggered the error.
 * @param exception The exception.
 * @return a CompletionStage containing the Result.
 */
protected CompletionStage<Result> onProdServerError(RequestHeader request, UsefulException exception) {
  return CompletableFuture.completedFuture(Results.internalServerError(views.html.defaultpages.error.render(exception, request.asScala())));
}
origin: com.typesafe.play/play_2.10

/**
 * Invoked in prod mode when a server error occurs.
 *
 * Override this rather than [[onServerError()]] if you don't want to change Play's debug output when logging errors
 * in dev mode.
 *
 * @param request The request that triggered the error.
 * @param exception The exception.
 */
protected F.Promise<Result> onProdServerError(RequestHeader request, UsefulException exception) {
  return F.Promise.<Result>pure(Results.internalServerError(views.html.defaultpages.error.render(exception)));
}
origin: com.typesafe.play/play_2.12

/**
 * Invoked in prod mode when a server error occurs.
 * <p>
 * The base implementation returns {@code Results.internalServerError} with the content of {@code views.html.defaultpages.error} template.
 * </p>
 * <p>
 * Override this rather than [[onServerError()]] if you don't want to change Play's debug output when logging errors
 * in dev mode.
 *
 * @param request   The request that triggered the error.
 * @param exception The exception.
 * @return a CompletionStage containing the Result.
 */
protected CompletionStage<Result> onProdServerError(RequestHeader request, UsefulException exception) {
  return CompletableFuture.completedFuture(Results.internalServerError(views.html.defaultpages.error.render(exception, request.asScala())));
}
origin: com.typesafe.play/play

/**
 * Invoked in prod mode when a server error occurs.
 * <p>
 * The base implementation returns {@code Results.internalServerError} with the content of {@code views.html.defaultpages.error} template.
 * </p>
 * <p>
 * Override this rather than [[onServerError()]] if you don't want to change Play's debug output when logging errors
 * in dev mode.
 *
 * @param request   The request that triggered the error.
 * @param exception The exception.
 * @return a CompletionStage containing the Result.
 */
protected CompletionStage<Result> onProdServerError(RequestHeader request, UsefulException exception) {
  return CompletableFuture.completedFuture(Results.internalServerError(views.html.defaultpages.error.render(exception, request.asScala())));
}
views.html.defaultpageserrorrender

Popular methods of error

    Popular in Java

    • Running tasks concurrently on multiple threads
    • addToBackStack (FragmentTransaction)
    • setRequestProperty (URLConnection)
      Sets the general request property. If a property with the key already exists, overwrite its value wi
    • getSharedPreferences (Context)
    • ConnectException (java.net)
      A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
    • Socket (java.net)
      Provides a client-side TCP socket.
    • SortedMap (java.util)
      A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
    • Vector (java.util)
      The Vector class implements a growable array of objects. Like an array, it contains components that
    • HttpServletRequest (javax.servlet.http)
      Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
    • Option (scala)
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now