Skip to content

Class Exception

Class \RdKafka\Exception

  • extends \Exception

Methods

__construct()

public __construct ( 
    mixed $message = '', 
    mixed $code, 
    ?\Throwable $previous = null
 ): 
Parameters
message mixed
code mixed
previous ?\Throwable

fromError()

public static fromError ( 
    int $code
 ): self
Parameters
code int
Returns
self

Test Coverage 💚

  • 💚 Lines: 100% (2 / 2)
  • 💚 Methods: 100% (2 / 2)

Extended by