File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 20
20
21
21
namespace Drupal \apigee_edge \Exception ;
22
22
23
+ use Drupal \Core \StringTranslation \StringTranslationTrait ;
23
24
use Drupal \Core \StringTranslation \TranslatableMarkup ;
24
25
25
26
/**
26
27
* Defines an exception for Apigee Edge key provider problems.
27
28
*/
28
29
class KeyProviderRequirementsException extends RuntimeException {
29
30
31
+ use StringTranslationTrait;
32
+
30
33
/**
31
34
* The TranslatableMarkup object containing a message to render on the UI.
32
35
*
33
- * @var \Drupal\Core\StringTranslation\TranslatableMarkup
36
+ * @var \Drupal\Core\StringTranslation\TranslatableMarkup|null
34
37
*/
35
38
protected $ translatableMarkupMessage ;
36
39
@@ -39,7 +42,7 @@ class KeyProviderRequirementsException extends RuntimeException {
39
42
*
40
43
* @param string $message
41
44
* The Exception message.
42
- * @param \Drupal\Core\StringTranslation\TranslatableMarkup $translatable_markup_message
45
+ * @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $translatable_markup_message
43
46
* The translatable markup object of the exception to display on the pages
44
47
* where the exception is caught.
45
48
* @param int|null $code
You can’t perform that action at this time.
0 commit comments