Files

31 lines
2.6 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>BusinessException.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">project-auth-server</a> &gt; <a href="index.source.html" class="el_package">com.project.auth.application.support.exception</a> &gt; <span class="el_source">BusinessException.java</span></div><h1>BusinessException.java</h1><pre class="source lang-java linenums">package com.project.auth.application.support.exception;
public abstract class BusinessException extends RuntimeException {
private final ClientFacingErrorCode errorCode;
protected BusinessException(ClientFacingErrorCode errorCode) {
<span class="fc" id="L8"> super(errorCode.message());</span>
<span class="fc" id="L9"> this.errorCode = errorCode;</span>
<span class="fc" id="L10"> }</span>
protected BusinessException(ClientFacingErrorCode errorCode, String detailMessage) {
<span class="nc" id="L13"> super(detailMessage);</span>
<span class="nc" id="L14"> this.errorCode = errorCode;</span>
<span class="nc" id="L15"> }</span>
protected BusinessException(ClientFacingErrorCode errorCode, Throwable cause) {
<span class="nc" id="L18"> super(errorCode.message(), cause);</span>
<span class="nc" id="L19"> this.errorCode = errorCode;</span>
<span class="nc" id="L20"> }</span>
protected BusinessException(ClientFacingErrorCode errorCode, String detailMessage, Throwable cause) {
<span class="nc" id="L23"> super(detailMessage, cause);</span>
<span class="nc" id="L24"> this.errorCode = errorCode;</span>
<span class="nc" id="L25"> }</span>
public ClientFacingErrorCode getErrorCode() {
<span class="fc" id="L28"> return errorCode;</span>
}
}
</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.14.202510111229</span></div></body></html>