/** * Factory method to create a new <code>BadRequestException</code> with the * noTarget SCIM detailed error keyword. * * @param errorMessage The error message for this SCIM exception. * @return The new <code>BadRequestException</code>. */ public static BadRequestException noTarget(final String errorMessage) { return new BadRequestException(errorMessage, NO_TARGET); }
/** * Create the appropriate SCIMException from the provided information. * * @param statusCode The HTTP status code for this SCIM exception. * @param errorMessage The error message for this SCIM exception. * @return The appropriate SCIMException from the provided information. */ public static ScimException createException(final int statusCode, final String errorMessage) { return createException(statusCode, errorMessage, null); }
/** * Factory method to create a new <code>BadRequestException</code> with the * invalidFilter SCIM detailed error keyword. * * @param errorMessage The error message for this SCIM exception. * @return The new <code>BadRequestException</code>. */ public static BadRequestException invalidFilter(final String errorMessage) { return new BadRequestException(errorMessage, INVALID_FILTER); }
/** * Create the appropriate SCIMException from the provided information. * * @param statusCode The HTTP status code for this SCIM exception. * @param errorMessage The error message for this SCIM exception. * @return The appropriate SCIMException from the provided information. */ public static ScimException createException(final int statusCode, final String errorMessage) { return createException(statusCode, errorMessage, null); }
/** * Factory method to create a new <code>BadRequestException</code> with the * uniqueness SCIM detailed error keyword. * * @param errorMessage The error message for this SCIM exception. * @return The new <code>BadRequestException</code>. */ public static BadRequestException uniqueness(final String errorMessage) { return new BadRequestException(errorMessage, UNIQUENESS); }
/** * Factory method to create a new <code>BadRequestException</code> with the * invalidSyntax SCIM detailed error keyword. * * @param errorMessage The error message for this SCIM exception. * @return The new <code>BadRequestException</code>. */ public static BadRequestException invalidSyntax(final String errorMessage) { return new BadRequestException(errorMessage, INVALID_SYNTAX); }
/** * Factory method to create a new <code>BadRequestException</code> with the * tooMany SCIM detailed error keyword. * * @param errorMessage The error message for this SCIM exception. * @return The new <code>BadRequestException</code>. */ public static BadRequestException tooMany(final String errorMessage) { return new BadRequestException(errorMessage, TOO_MANY); }
/** * Factory method to create a new <code>BadRequestException</code> with the * mutability SCIM detailed error keyword. * * @param errorMessage The error message for this SCIM exception. * @return The new <code>BadRequestException</code>. */ public static BadRequestException mutability(final String errorMessage) { return new BadRequestException(errorMessage, MUTABILITY); }
/** * Factory method to create a new <code>BadRequestException</code> with the * invalidPath SCIM detailed error keyword. * * @param errorMessage The error message for this SCIM exception. * @return The new <code>BadRequestException</code>. */ public static BadRequestException invalidPath(final String errorMessage) { return new BadRequestException(errorMessage, INVALID_PATH); }
/** * Factory method to create a new <code>BadRequestException</code> with the * invalidValue SCIM detailed error keyword. * * @param errorMessage The error message for this SCIM exception. * @return The new <code>BadRequestException</code>. */ public static BadRequestException invalidValue(final String errorMessage) { return new BadRequestException(errorMessage, INVALID_VALUE); }
/** * Factory method to create a new <code>BadRequestException</code> with the * invalidSyntax SCIM detailed error keyword. * * @param errorMessage The error message for this SCIM exception. * @return The new <code>BadRequestException</code>. */ public static BadRequestException invalidSyntax(final String errorMessage) { return new BadRequestException(errorMessage, INVALID_SYNTAX); }
/** * Factory method to create a new <code>BadRequestException</code> with the * noTarget SCIM detailed error keyword. * * @param errorMessage The error message for this SCIM exception. * @return The new <code>BadRequestException</code>. */ public static BadRequestException noTarget(final String errorMessage) { return new BadRequestException(errorMessage, NO_TARGET); }
/** * Factory method to create a new <code>BadRequestException</code> with the * mutability SCIM detailed error keyword. * * @param errorMessage The error message for this SCIM exception. * @return The new <code>BadRequestException</code>. */ public static BadRequestException mutability(final String errorMessage) { return new BadRequestException(errorMessage, MUTABILITY); }
/** * Factory method to create a new <code>BadRequestException</code> with the * invalidPath SCIM detailed error keyword. * * @param errorMessage The error message for this SCIM exception. * @return The new <code>BadRequestException</code>. */ public static BadRequestException invalidPath(final String errorMessage) { return new BadRequestException(errorMessage, INVALID_PATH); }
/** * Factory method to create a new <code>BadRequestException</code> with the * invalidFilter SCIM detailed error keyword. * * @param errorMessage The error message for this SCIM exception. * @return The new <code>BadRequestException</code>. */ public static BadRequestException invalidFilter(final String errorMessage) { return new BadRequestException(errorMessage, INVALID_FILTER); }
/** * Factory method to create a new <code>BadRequestException</code> with the * uniqueness SCIM detailed error keyword. * * @param errorMessage The error message for this SCIM exception. * @return The new <code>BadRequestException</code>. */ public static BadRequestException uniqueness(final String errorMessage) { return new BadRequestException(errorMessage, UNIQUENESS); }
/** * Factory method to create a new <code>BadRequestException</code> with the * tooMany SCIM detailed error keyword. * * @param errorMessage The error message for this SCIM exception. * @return The new <code>BadRequestException</code>. */ public static BadRequestException tooMany(final String errorMessage) { return new BadRequestException(errorMessage, TOO_MANY); }
/** * Factory method to create a new <code>BadRequestException</code> with the * invalidValue SCIM detailed error keyword. * * @param errorMessage The error message for this SCIM exception. * @return The new <code>BadRequestException</code>. */ public static BadRequestException invalidValue(final String errorMessage) { return new BadRequestException(errorMessage, INVALID_VALUE); }
/** * Factory method to create a new <code>BadRequestException</code> with the * invalidVersion SCIM detailed error keyword. * * @param errorMessage The error message for this SCIM exception. * @return The new <code>BadRequestException</code>. */ public static BadRequestException invalidVersion(final String errorMessage) { return new BadRequestException(errorMessage, INVALID_VERSION); } }
/** * Factory method to create a new <code>BadRequestException</code> with the * invalidVersion SCIM detailed error keyword. * * @param errorMessage The error message for this SCIM exception. * @return The new <code>BadRequestException</code>. */ public static BadRequestException invalidVersion(final String errorMessage) { return new BadRequestException(errorMessage, INVALID_VERSION); } }