package com.spring.common.error;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

@Getter
@RequiredArgsConstructor
public class RejectedValue {
    
    private final String field;
    private final Object value;
    private final String reason;

    public static RejectedValue of(String field, Object value, String reason) {
        return new RejectedValue(field, value, reason);
    }

}
