congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
error
Code IndexAdd Tabnine to your IDE (free)

How to use
error
in
views.html.defaultpages

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

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.defaultpageserror

Most used methods

  • render

Popular in Java

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now