MAKS\AmqpAgent\Exception\AmqpAgentException:: rethrow
Rethrows an exception with an additional message.
Signature
public function rethrow(Exception
$exception,
[string
$message = NULL,
[boolean
$wrap = true]] )
Parameters
$exception
—
Exception
The exception to rethrow.
$message
—
string
[optional] An additional message to add to the wrapping exception before the message of the passed exception.
$wrap
—
boolean
[optional] Whether to throw the exception using the passed class (FQN), in the same exception type (true), or wrap it with the class this method was called on (false). Any other value will be translated to false. Defaults to true.
Returns
void
Errors/Exceptions
Exception
Test Coverage
Information
Coverage: 14/14 Lines (100%)
Tests: 14
Passed: 14 (100%)
Tests
[ PASSED ] — MAKS\AmqpAgent\Tests\Exception\AmqpAgentExceptionTest::testAmqpAgentExceptionRethrow
[ PASSED ] — MAKS\AmqpAgent\Tests\Exception\AmqpAgentExceptionTest::testAmqpAgentExceptionRethrowViaAliasMethod
[ PASSED ] — MAKS\AmqpAgent\Tests\Exception\AmqpAgentExceptionTest::testAmqpAgentExceptionRethrowWithMessageParameter
[ PASSED ] — MAKS\AmqpAgent\Tests\Exception\AmqpAgentExceptionTest::testAmqpAgentExceptionRethrowStringWrapParameter
[ PASSED ] — MAKS\AmqpAgent\Tests\Exception\AmqpAgentExceptionTest::testAmqpAgentExceptionRethrowBooleanWrapParameter
[ PASSED ] — MAKS\AmqpAgent\Tests\Helper\ClassProxyTest::testCallMethodMethod
[ PASSED ] — MAKS\AmqpAgent\Tests\Helper\ClassProxyTest::testGetPropertyMethod
[ PASSED ] — MAKS\AmqpAgent\Tests\Helper\ClassProxyTest::testSetPropertyMethod
[ PASSED ] — MAKS\AmqpAgent\Tests\Helper\ClassProxyTest::testCastObjectToClassMethodWithAClassWithPrivateProperties
[ PASSED ] — MAKS\AmqpAgent\Tests\Worker\PublisherTest::testWorkRaisesAnExceptionIfUnexpectedParameterIsPassed
[ PASSED ] — MAKS\AmqpAgent\Tests\Worker\ConsumerTest::testWorkRaisesAnExceptionIfUnexpectedParameterIsPassed
[ PASSED ] — MAKS\AmqpAgent\Tests\RPC\AbstractEndpointTest::testPingMethodRaisesAnExceptionIfAnErrorOccurred
[ PASSED ] — MAKS\AmqpAgent\Tests\RPC\ClientEndpointTest::testAnExceptionIsRaisedIfCorrelationIdOfTheResponseIsNotTheSameAsTheRequest
[ PASSED ] — MAKS\AmqpAgent\Tests\RPC\ServerEndpointTest::testAnExceptionIsRaisedIfPassedCallbackDoesNotReturnString
Generated using phpDox 0.12.0-dev - Copyright (C) 2010 - 2022 by Arne Blankerts and Contributors