SecurityNotFound.java

package com.tdmconsult.ete.exceptions;

public class SecurityNotFound extends ResourceNotFoundException {

    public SecurityNotFound(final String criteria) {
        super("security/equity", criteria);
    }

    public static SecurityNotFound byId(final String publicId) {
        return new SecurityNotFound("PublicId: " + publicId);
    }

    public static SecurityNotFound byIsin(final String isin) {
        return new SecurityNotFound("ISIN: " + isin);
    }
}