package com.banesco.application.exception; import com.banesco.domain.interfaces.BaseStatusCodesEnum; public class BanRuntimeException extends RuntimeException { protected BaseStatusCodesEnum statusCode; protected String fieldName; protected String backendCode; protected String statusDesc; public BanRuntimeException() { super("Internal Error"); } public BanRuntimeException(BaseStatusCodesEnum statusCode, String fieldName) { super(statusCode.getStatusDesc()); this.statusCode = statusCode; this.fieldName = fieldName; } public BanRuntimeException(String backendCode, String statusDesc) { super(statusDesc); this.backendCode = backendCode; this.statusDesc = statusDesc; } }