Code Duplication    Length = 3-3 lines in 2 locations

src/Client.php 2 locations

@@ 176-178 (lines=3) @@
173
     */
174
    public function addException(\Exception $exception)
175
    {
176
        if (!$exception instanceof Exception) {
177
            @trigger_error('Clients may only throw exceptions of type '.Exception::class.'. Setting an exception of class '.get_class($exception).' will not be possible anymore in the future', E_USER_DEPRECATED);
178
        }
179
        $this->exceptions[] = $exception;
180
    }
181
@@ 189-191 (lines=3) @@
186
     */
187
    public function setDefaultException(\Exception $defaultException = null)
188
    {
189
        if (null !== $defaultException && !$defaultException instanceof Exception) {
190
            @trigger_error('Clients may only throw exceptions of type '.Exception::class.'. Setting an exception of class '.get_class($defaultException).' will not be possible anymore in the future', E_USER_DEPRECATED);
191
        }
192
        $this->defaultException = $defaultException;
193
    }
194