/** * Returns a copy of this ErrorCode with the given send report URI set. * This can be used to provide a URI to which a report should be sent when * the error is received. The value will appear as the content of the * {@code sendReport} element in the XML error format. */ public ErrorCode withSendReport(String newSendReport) { return new ErrorCode( codeName, extendedHelp, internalReason, newSendReport); }
/** * Returns a copy of this ErrorCode with the given send report URI set. * This can be used to provide a URI to which a report should be sent when * the error is received. The value will appear as the content of the * {@code sendReport} element in the XML error format. */ public ErrorCode withSendReport(String newSendReport) { return new ErrorCode( codeName, extendedHelp, internalReason, newSendReport); }
/** * Returns a copy of this ErrorCode with the given extended help URI set. * This can be used to provide a detailed explanation of the error code. * The value will appear as the content of the {@code extendedHelp} element * in the XML error format. */ public ErrorCode withExtendedHelp(String newExtendedHelp) { return new ErrorCode( codeName, newExtendedHelp, internalReason, sendReport); }
/** * Returns a copy of this ErrorCode with the given internal reason * (un-internationalized explanation) set. The value will appear as the * content of the {@code internalReason} element in the XML error format. */ public ErrorCode withInternalReason(String newInternalReason) { return new ErrorCode( codeName, extendedHelp, newInternalReason, sendReport); }
/** * Returns a copy of this ErrorCode with the given internal reason * (un-internationalized explanation) set. The value will appear as the * content of the {@code internalReason} element in the XML error format. */ public ErrorCode withInternalReason(String newInternalReason) { return new ErrorCode( codeName, extendedHelp, newInternalReason, sendReport); }
/** * Returns a copy of this ErrorCode with the given extended help URI set. * This can be used to provide a detailed explanation of the error code. * The value will appear as the content of the {@code extendedHelp} element * in the XML error format. */ public ErrorCode withExtendedHelp(String newExtendedHelp) { return new ErrorCode( codeName, newExtendedHelp, internalReason, sendReport); }
/** * Returns a copy of this ErrorCode with the given send report URI set. * This can be used to provide a URI to which a report should be sent when * the error is received. The value will appear as the content of the * {@code sendReport} element in the XML error format. */ public ErrorCode withSendReport(String newSendReport) { return new ErrorCode( codeName, extendedHelp, internalReason, newSendReport); }
/** * Returns a copy of this ErrorCode with the given extended help URI set. * This can be used to provide a detailed explanation of the error code. * The value will appear as the content of the {@code extendedHelp} element * in the XML error format. */ public ErrorCode withExtendedHelp(String newExtendedHelp) { return new ErrorCode( codeName, newExtendedHelp, internalReason, sendReport); }
/** * Returns a copy of this ErrorCode with the given internal reason * (un-internationalized explanation) set. The value will appear as the * content of the {@code internalReason} element in the XML error format. */ public ErrorCode withInternalReason(String newInternalReason) { return new ErrorCode( codeName, extendedHelp, newInternalReason, sendReport); }