package com.banesco.common.domain.exception;

import lombok.Builder;
import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
@Builder
public class ApiPrivateException extends RuntimeException {
    private final String statusCode;
    private final String message;

    public ApiPrivateException(
        String statusCode,
        String message
    ) {
        super(message != null ? message : "Operacion de dominio fallida");
        this.statusCode = statusCode;
        this.message = message;
    }
}