class ExceptionExample in Coder 8.3
Same name and namespace in other branches
- 8.3.x tests/DrupalPractice/General/ExceptionTUnitTest.inc \ExceptionExample
Hierarchy
- class \ExceptionExample
Expanded class hierarchy of ExceptionExample
File
- tests/
DrupalPractice/ General/ ExceptionTUnitTest.inc, line 3
View source
class ExceptionExample {
public function foo() {
throw new Exception(t('Error'));
}
public function bar() {
throw new Exception($this
->t('Error'));
}
public function lorem() {
return t('Error');
}
public function ipsum() {
return $this
->t('Error');
}
public function dolor() {
throw (new PipelineStepExecutionLogicException('Graph data could not be inserted'))
->setUserMessage([
'#markup' => $this
->t('Could not store triples in triple store. Reason: @message', [
'@message' => t('Failed'),
]),
]);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ExceptionExample:: |
public | function | ||
ExceptionExample:: |
public | function | ||
ExceptionExample:: |
public | function | ||
ExceptionExample:: |
public | function | ||
ExceptionExample:: |
public | function |