Skip to content

Commit c2a052d

Browse files
committed
Added custom error message
1 parent bd8c904 commit c2a052d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/docusign/controller/maestro/examples/Mae001TriggerWorkflowController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class Mae001TriggerWorkflowController extends AbstractMaestroController {
3030

3131
private static final String PUBLISH_LINK = "publishLink";
3232

33-
public static final String WORKFLOW_NAME = "Example workflow - send invite to signer hahaha";
33+
public static final String WORKFLOW_NAME = "Example workflow - send invite to signer";
3434

3535
public static final String STATUS = "active";
3636

@@ -45,7 +45,7 @@ protected void onInitModel(WorkArguments args, ModelMap model) throws Exception
4545
try {
4646
ensureWorkflowExists(model);
4747
} catch(Exception exception) {
48-
throw exception;
48+
throw new Exception(getTextForCodeExampleByApiType().CustomErrorTexts.get(0).ErrorMessage);
4949
}
5050

5151
model.addAttribute(TEMPLATE_ID, session.getTemplateId());

0 commit comments

Comments
 (0)