Handles exceptions when handling incoming LTI messages.  
 More...
|  | 
| string | $id = '' | 
|  | The LTI service message ID, if known. 
 | 
|  | 
| bool | $log = false | 
|  | Enable error response logging. 
 | 
|  | 
| string | $type = 'unknownRequest' | 
|  | The LTI service message type, if known. 
 | 
|  | 
Handles exceptions when handling incoming LTI messages. 
Ensures that LTI always returns a XML message that can be consumed by the caller.
- Copyright
- Copyright (c) 2015 Moodlerooms Inc. (http://www.moodlerooms.com) 
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 
◆ __construct()
      
        
          | mod_lti\service_exception_handler::__construct | ( |  | $log | ) |  | 
      
 
Constructor. 
- Parameters
- 
  
    | boolean | $log | Enable error response logging. |  
 
 
 
◆ handle()
      
        
          | mod_lti\service_exception_handler::handle | ( |  | $exception | ) |  | 
      
 
Echo an exception message encapsulated in XML. 
- Parameters
- 
  
    | Exception | Throwable | $exception | The exception that was thrown |  
 
 
 
◆ set_message_id()
      
        
          | mod_lti\service_exception_handler::set_message_id | ( |  | $id | ) |  | 
      
 
Set the LTI message ID being handled. 
- Parameters
- 
  
  
 
 
◆ set_message_type()
      
        
          | mod_lti\service_exception_handler::set_message_type | ( |  | $type | ) |  | 
      
 
Set the LTI message type being handled. 
- Parameters
- 
  
  
 
 
The documentation for this class was generated from the following file: