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

How to use
ExceptionResolver
in
cn.home1.oss.lib.errorhandle.api

Best Java code snippets using cn.home1.oss.lib.errorhandle.api.ExceptionResolver (Showing top 12 results out of 315)

origin: cn.home1/oss-lib-errorhandle-spring-boot-1.4.1.RELEASE

public ModelAndView resolveAndHandle(
 final HttpServletRequest request, //
 final HttpServletResponse response, //
 final Throwable throwable //
) {
 final ResolvedError resolvedError = this.exceptionResolver.resolve(request, throwable);
 this.handleResolved(request, response, resolvedError);
 return new ModelAndView();
}
origin: cn.home1/oss-lib-errorhandle-spring-boot-1.4.1.RELEASE

public ModelAndView resolveAndHandle( //
 final HttpServletRequest request, //
 final HttpServletResponse response, //
 final Throwable throwable //
) {
 final ResolvedError resolvedError = this.exceptionResolver.resolve(request, throwable);
 return this.handleResolved(request, response, resolvedError);
}
origin: cn.home1/oss-lib-errorhandle-spring-boot-1.4.2.RELEASE

public ModelAndView resolveAndHandle( //
 final HttpServletRequest request, //
 final HttpServletResponse response, //
 final Throwable throwable //
) {
 final ResolvedError resolvedError = this.exceptionResolver.resolve(request, throwable);
 return this.handleResolved(request, response, resolvedError);
}
origin: cn.home1/oss-lib-errorhandle-spring-boot-1.4.2.RELEASE

public ModelAndView resolveAndHandle(
 final HttpServletRequest request, //
 final HttpServletResponse response, //
 final Throwable throwable //
) {
 final ResolvedError resolvedError = this.exceptionResolver.resolve(request, throwable);
 this.handleResolved(request, response, resolvedError);
 return new ModelAndView();
}
origin: cn.home1/oss-lib-errorhandle-spring-boot-1.4.1.RELEASE

@Override
public ModelAndView resolveException( //
 final HttpServletRequest request, //
 final HttpServletResponse response, //
 final Object handler, //
 final Exception ex //
) {
 final ResolvedError resolved = this.resolver.resolve(request, ex);
 this.storeErrorAttributes(request, resolved != null ? new ResolvedErrorException(resolved) : ex);
 return null;
}
origin: cn.home1/oss-lib-errorhandle-spring-boot-1.4.2.RELEASE

@Override
public ModelAndView resolveException( //
 final HttpServletRequest request, //
 final HttpServletResponse response, //
 final Object handler, //
 final Exception ex //
) {
 final ResolvedError resolved = this.resolver.resolve(request, ex);
 this.storeErrorAttributes(request, resolved != null ? new ResolvedErrorException(resolved) : ex);
 return null;
}
origin: cn.home1/oss-lib-errorhandle-spring-boot-1.4.2.RELEASE

@Override
public ResolvedError resolve(final HttpServletRequest request, final Throwable throwable) {
 final ResolvedError resolvedError;
 final Optional<ExceptionResolver<Throwable>> resolverOptional = resolver(throwable);
 if (resolverOptional.isPresent()) {
  final ExceptionResolver<Throwable> resolver = resolverOptional.get();
  final ResolvedError resolved = resolver.resolve(request, throwable);
  if (resolved != null) {
   resolvedError = resolved;
  } else {
   resolvedError = this.defaultResolver.resolve(request, throwable);
  }
 } else {
  resolvedError = this.defaultResolver.resolve(request, throwable);
 }
 return resolvedError;
}
origin: cn.home1/oss-lib-errorhandle-spring-boot-1.4.1.RELEASE

@Override
public ResolvedError resolve(final HttpServletRequest request, final Throwable throwable) {
 final ResolvedError resolvedError;
 final Optional<ExceptionResolver<Throwable>> resolverOptional = resolver(throwable);
 if (resolverOptional.isPresent()) {
  final ExceptionResolver<Throwable> resolver = resolverOptional.get();
  final ResolvedError resolved = resolver.resolve(request, throwable);
  if (resolved != null) {
   resolvedError = resolved;
  } else {
   resolvedError = this.defaultResolver.resolve(request, throwable);
  }
 } else {
  resolvedError = this.defaultResolver.resolve(request, throwable);
 }
 return resolvedError;
}
origin: cn.home1/oss-lib-errorhandle-spring-boot-1.4.1.RELEASE

@Override
public ResolvedError resolve(final RequestAttributes requestAttributes, final Throwable throwable) {
 final ResolvedError resolvedError;
 final Optional<ExceptionResolver<Throwable>> resolverOptional = resolver(throwable);
 if (resolverOptional.isPresent()) {
  final ExceptionResolver<Throwable> resolver = resolverOptional.get();
  final ResolvedError resolved = resolver.resolve(requestAttributes, throwable);
  if (resolved != null) {
   resolvedError = resolved;
  } else {
   resolvedError = this.defaultResolver.resolve(requestAttributes, throwable);
  }
 } else {
  resolvedError = this.defaultResolver.resolve(requestAttributes, throwable);
 }
 return resolvedError;
}
origin: cn.home1/oss-lib-errorhandle-spring-boot-1.4.2.RELEASE

@Override
public ResolvedError resolve(final RequestAttributes requestAttributes, final Throwable throwable) {
 final ResolvedError resolvedError;
 final Optional<ExceptionResolver<Throwable>> resolverOptional = resolver(throwable);
 if (resolverOptional.isPresent()) {
  final ExceptionResolver<Throwable> resolver = resolverOptional.get();
  final ResolvedError resolved = resolver.resolve(requestAttributes, throwable);
  if (resolved != null) {
   resolvedError = resolved;
  } else {
   resolvedError = this.defaultResolver.resolve(requestAttributes, throwable);
  }
 } else {
  resolvedError = this.defaultResolver.resolve(requestAttributes, throwable);
 }
 return resolvedError;
}
origin: cn.home1/oss-lib-errorhandle-spring-boot-1.4.1.RELEASE

@Override
public Map<String, Object> getErrorAttributes( //
 final RequestAttributes requestAttributes, //
 final boolean includeStackTrace //
) {
 final Throwable error = getError(requestAttributes);
 final ResolvedError resolved = ResolvedErrorException.isResolvedError(error) ? //
  ((ResolvedErrorException) error).getError() : //
  this.resolver.resolve(requestAttributes, error);
 return resolved != null ? resolved.toErrorAttributes() : ImmutableMap.of();
}
origin: cn.home1/oss-lib-errorhandle-spring-boot-1.4.2.RELEASE

@Override
public Map<String, Object> getErrorAttributes( //
 final RequestAttributes requestAttributes, //
 final boolean includeStackTrace //
) {
 final Throwable error = getError(requestAttributes);
 final ResolvedError resolved = ResolvedErrorException.isResolvedError(error) ? //
  ((ResolvedErrorException) error).getError() : //
  this.resolver.resolve(requestAttributes, error);
 return resolved != null ? resolved.toErrorAttributes() : ImmutableMap.of();
}
cn.home1.oss.lib.errorhandle.apiExceptionResolver

Most used methods

  • resolve

Popular in Java

  • Making http post requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • getSupportFragmentManager (FragmentActivity)
  • addToBackStack (FragmentTransaction)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Collectors (java.util.stream)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Option (scala)
  • PhpStorm for WordPress
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