/** * Constructor. * * @param status * The status to copy. * @param throwable * The related error or exception. */ public Status(final Status status, final Throwable throwable) { this(status.getCode(), throwable, status.getName(), (throwable == null) ? null : throwable.getMessage(), status .getUri()); }
/** * Constructor. * * @param status * The status to copy. * @param description * The description to associate. */ public Status(final Status status, final String description) { this(status.getCode(), status.getName(), description, status.getUri()); }
/** * Constructor. * * @param status * The status to copy. * @param throwable * The related error or exception. * @param description * The description to associate. */ public Status(final Status status, final Throwable throwable, final String description) { this(status.getCode(), throwable, status.getName(), description, status .getUri()); }
/** * Constructor. * * @param status * The represented status. * @param contactEmail * The email address of the administrator to contact in case of * error. * @param homeRef * The home URI to propose in case of error. */ public StatusInfo(Status status, String contactEmail, String homeRef) { this(status.getCode(), status.getDescription(), status .getReasonPhrase(), status.getUri(), contactEmail, homeRef); }
/** * Constructor. * * @param status * The status to copy. * @param throwable * The related error or exception. * @param description * The description to associate. */ public Status(Status status, Throwable throwable, String description) { this(status.getCode(), (throwable == null) ? status.getThrowable() : throwable, status.getReasonPhrase(), (description == null) ? status.getDescription() : description, status.getUri()); }
/** * Constructor. * * @param status * The status to copy. * @param throwable * The related error or exception. * @param reasonPhrase * The short reason phrase displayed next to the status code in a * HTTP response. * @param description * The description to associate. */ public Status(Status status, Throwable throwable, String reasonPhrase, String description) { this(status.getCode(), (throwable == null) ? status.getThrowable() : throwable, (reasonPhrase == null) ? status.getReasonPhrase() : reasonPhrase, (description == null) ? status.getDescription() : description, status.getUri()); }