Skip to content

Commit

Permalink
[WIP]
Browse files Browse the repository at this point in the history
  • Loading branch information
jongpie committed Sep 12, 2024
1 parent 7a3d6ab commit 6d33bb7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ global without sharing class CallableLogger implements System.Callable {
private static final String OMNISTUDIO_ARGUMENT_INPUT = 'input';
private static final String OMNISTUDIO_ARGUMENT_OUTPUT = 'output';
// Names of arguments only used for output
private static final String OUTPUT_ARGUMENT_CALL_EXCEPTION_MESSAGE = 'errorMessage';
private static final String OUTPUT_ARGUMENT_CALL_EXCEPTION_TYPE = 'errorType';
private static final String OUTPUT_ARGUMENT_CALL_EXCEPTION_MESSAGE = 'exceptionMessage';
private static final String OUTPUT_ARGUMENT_CALL_EXCEPTION_TYPE = 'exceptionType';
private static final String OUTPUT_ARGUMENT_CALL_IS_SUCCESS = 'isSuccess';

/**
Expand All @@ -50,7 +50,7 @@ global without sharing class CallableLogger implements System.Callable {
try {
output.put(OUTPUT_ARGUMENT_CALL_IS_SUCCESS, true);
new CallableHandler().handleCall(action, input, output);
} catch(System.Exception thrownException) {
} catch (System.Exception thrownException) {
output.put(OUTPUT_ARGUMENT_CALL_IS_SUCCESS, false);
output.put(OUTPUT_ARGUMENT_CALL_EXCEPTION_MESSAGE, thrownException.getMessage());
output.put(OUTPUT_ARGUMENT_CALL_EXCEPTION_TYPE, thrownException.getTypeName());
Expand Down

0 comments on commit 6d33bb7

Please sign in to comment.