Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Token

Description

Message bundle key (start with "MessageFormatter.")

%ERROR_HEADING%

e.g. "The Pentaho BI Platform reported an error while running an action sequence"

RESPONSE_ERROR_HEADING

%EXCEPTION_MSG%

prints the topmost exception message text

N/A

%EXCEPTION_MSG_LABEL%

e.g. "Error Message:"

RESPONSE_EXCEPTION_MSG_LABEL

%EXCEPTION_TIME_LABEL%

e.g. "Error Time:"

RESPONSE_EXCEPTION_TIME_LABEL

%EXCEPTION_TIME%

the time the root cause exception occurred.  Uses LocalHelper to format the date.

N/A

%EXCEPTION_TYPE_LABEL%

 

RESPONSE_EXCEPTION_TYPE_LABEL

%EXCEPTION_TYPE%

 

 

%SESSION_ID_LABEL%

 

RESPONSE_EXCEPTION_SESSION_ID_LABEL

%SESSION_ID%

 

 

%INSTANCE_ID_LABEL%

 

RESPONSE_EXCEPTION_INSTANCE_ID_LABEL

%INSTANCE_ID%

 

 

%ACTION_SEQUENCE_LABEL%

 

RESPONSE_EXCEPTION_ACTION_SEQUENCE_LABEL

%ACTION_SEQUENCE%

 

 

%ACTION_SEQUENCE_EXECUTION_STACK_LABEL%

 

RESPONSE_EXCEPTION_ACTION_SEQUENCE_EXECUTION_STACK_LABEL

%ACTION_SEQUENCE_EXECUTION_STACK%

 


%ACTION_CLASS_LABEL%

 

RESPONSE_EXCEPTION_ACTION_CLASS_LABEL

%ACTION_CLASS%

 


%ACTION_DESC_LABEL%

 

RESPONSE_EXCEPTION_ACTION_DESC_LABEL

%ACTION_DESC%

 

 

%STEP_NUM_LABEL%

 

RESPONSE_EXCEPTION_STEP_NUM_LABEL

%STEP_NUM%

 

 

%STACK_TRACE_LABEL%

 

RESPONSE_EXCEPTION_STACK_TRACE_LABEL

%STACK_TRACE%

 

 


Example html error template file

Code Block

<html><head><title></title><link rel="stylesheet" type="text/css" href="/pentaho-style/active/default.css"></head>
<body>
<div id="errorResponse">
<div class="error"> 
         
<h1>%ERROR_HEADING%</h1>
<div class="summary">
  <div class="item"><span class="label">%EXCEPTION_MESSAGES_LABEL%</span><pre>%EXCEPTION_MESSAGES%</pre></div>
  <div class="item"><span class="label">%ACTION_SEQUENCE_LABEL%</span>%ACTION_SEQUENCE%</div>
  <div class="item"><span class="label">%ACTION_SEQUENCE_EXECUTION_STACK_LABEL%</span><pre>%ACTION_SEQUENCE_EXECUTION_STACK%</pre></div>
  <div class="item"><span class="label">%LOOP_INDEX_LABEL%</span>%LOOP_INDEX%</div>
  <div class="item"><span class="label">%EXCEPTION_TIME_LABEL%</span>%EXCEPTION_TIME%</div>
  <div class="item"><span class="label">%EXCEPTION_TYPE_LABEL%</span>%EXCEPTION_TYPE%</div>
  <div class="item"><span class="label">%SESSION_ID_LABEL%</span>%SESSION_ID%</div>
  <div class="item"><span class="label">%INSTANCE_ID_LABEL%</span>%INSTANCE_ID%</div>
  <div class="item"><span class="label">%ACTION_CLASS_LABEL%</span>%ACTION_CLASS%</div>
  <div class="item"><span class="label">%ACTION_DESC_LABEL%</span>%ACTION_DESC%</div>
  <!-- <div class="item"><span class="label">%STEP_NUM_LABEL%</span>%STEP_NUM%</div> -->
</div>
  
<div id="details" class="details"><span class="label">%STACK_TRACE_LABEL%</span><pre class="stackTrace">%STACK_TRACE%<pre></div>
  
</div> 
</div>

<div class="errorResponseFooter">%SERVER_INFO%</div>
    
</body>
</html>

Example error output

Here is an example of an action sequence failure as depicted in the log file:

...