Table of Contents

Search

  1. Preface
  2. Transformations
  3. Source transformation
  4. Target transformation
  5. Access Policy transformation
  6. Aggregator transformation
  7. Cleanse transformation
  8. Data Masking transformation
  9. Data Services transformation
  10. Deduplicate transformation
  11. Expression transformation
  12. Filter transformation
  13. Hierarchy Builder transformation
  14. Hierarchy Parser transformation
  15. Hierarchy Processor transformation
  16. Input transformation
  17. Java transformation
  18. Java transformation API reference
  19. Joiner transformation
  20. Labeler transformation
  21. Lookup transformation
  22. Machine Learning transformation
  23. Mapplet transformation
  24. Normalizer transformation
  25. Output transformation
  26. Parse transformation
  27. Python transformation
  28. Rank transformation
  29. Router transformation
  30. Rule Specification transformation
  31. Sequence Generator transformation
  32. Sorter transformation
  33. SQL transformation
  34. Structure Parser transformation
  35. Transaction Control transformation
  36. Union transformation
  37. Velocity transformation
  38. Verifier transformation
  39. Web Services transformation

Transformations

Transformations

failSession

failSession

Throws an exception with an error message and fails the session. Use failSession to terminate the session.
Use failSession in any section of the Java editor except Import Packages. Do not use failSession in a try/catch block in the Java editor.
Use the following syntax:
failSession(String errorMessage);
Argument
Data Type
Input/Output
Description
errorMessage
String
Input
Error message string.
Use the following Java code to test the input field input1 for a null value and fail the session if input1 is NULL:
if(isNull(”input1”)) {      failSession(“Cannot process a null value for field input1.”); }

0 COMMENTS

We’d like to hear from you!