/** * Creates an {@code AuthorizationSubjectBlockedException} object. * * @return The new exception object. */ public static AuthorizationSubjectBlockedException newInstance() { return new AuthorizationSubjectBlockedException(); }
/** * Constructs a new {@code AuthorizationSubjectBlockedException} object with its fields extracted from * the given JSON object. * * @param json the JSON to read the {@link JsonFields#MESSAGE} field from. * @param dittoHeaders the headers of the command which resulted in this exception. * @return the new exception object. */ @SuppressWarnings("squid:S1172") public static AuthorizationSubjectBlockedException fromJson(final JsonObject json, final DittoHeaders dittoHeaders) { // ignore the JSON object. return new AuthorizationSubjectBlockedException(dittoHeaders); }