/* * Copyright © 2015 CurisIT, S.L. All Rights Reserved. */ package net.curisit.securis.services.exception; /** * CurisException

* This class manages the standard (before or after computation) error on computation that implies that the problem is reported * and the computation can continue. * * @author JRA * Last reviewed by APB on April 05, 2022. */ public class CurisException extends Exception { private static final long serialVersionUID = 3830386897219028662L; // i18 code for message localization String i18key = null; /** * CurisException

* This method is used to manage the standard exception with the message. * * @param msg * The exception message */ public CurisException(String msg) { super(msg); } /** * CurisException

* This method is used to manage the standard exception with the message and the cause. * * @param msg * The exception message * @param cause * The error cause */ public CurisException(String msg, Throwable cause) { super(msg, cause); } /** * CurisException

* This method is used to manage the standard exception with the message and the cause. * * @param msg * The exception message * @param cause * The error cause */ public CurisException(String msg, String i18k) { this(msg); this.i18key = i18k; } /** * CurisException

* This method is used to manage the standard exception with the message, the i18 code and the cause. * * @param msg * The exception message * @param i18k * The code for localization * @param cause * The error cause */ public CurisException(String msg, String i18k, Throwable cause) { this(msg, cause); this.i18key = i18k; } /** * geti18key

* This method is used to get the i18 code for localization. * * @return i18key * The i18 code */ public String geti18key() { return i18key; } }