Server IP : 172.67.157.199 / Your IP : 3.133.131.29 [ Web Server : Apache System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64 User : root ( 0) PHP Version : 8.0.30.2 Disable Function : NONE Domains : 0 Domains MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/wp-content/mu-plugins/vendor/godaddy/mwc-core/vendor/sentry/sentry/src/ |
Upload File : |
<?php declare(strict_types=1); namespace Sentry; /** * This class represents the Exception Interface and contains the details of an * exception or error that occurred in the program. * * @author Stefano Arlandini <[email protected]> */ final class ExceptionDataBag { /** * @var string The type of exception, e.g. RuntimeException */ private $type; /** * @var string The value of the exception */ private $value; /** * @var Stacktrace|null An optional stack trace object corresponding to the Stack Trace Interface */ private $stacktrace; /** * @var ExceptionMechanism|null An optional object describing the mechanism that created this exception */ private $mechanism; public function __construct(\Throwable $exception, ?Stacktrace $stacktrace = null, ?ExceptionMechanism $mechanism = null) { $this->type = \get_class($exception); $this->value = $exception->getMessage(); $this->stacktrace = $stacktrace; $this->mechanism = $mechanism; } /** * Gets the type of exception, e.g. RuntimeException. */ public function getType(): string { return $this->type; } /** * Sets the type of the exception. * * @param string $type The exception type */ public function setType(string $type): self { $this->type = $type; return $this; } /** * Gets the value of the exception. */ public function getValue(): string { return $this->value; } /** * Sets the value of the exception. */ public function setValue(string $value): self { $this->value = $value; return $this; } /** * Gets the stack trace object corresponding to the Stack Trace Interface. */ public function getStacktrace(): ?Stacktrace { return $this->stacktrace; } /** * Sets the stack trace object corresponding to the Stack Trace Interface. * * @param Stacktrace $stacktrace The stacktrace */ public function setStacktrace(Stacktrace $stacktrace): self { $this->stacktrace = $stacktrace; return $this; } /** * Gets the object describing the mechanism that created this exception. */ public function getMechanism(): ?ExceptionMechanism { return $this->mechanism; } /** * Sets the object describing the mechanism that created this exception. * * @param ExceptionMechanism|null $mechanism The mechanism that created this exception */ public function setMechanism(?ExceptionMechanism $mechanism): self { $this->mechanism = $mechanism; return $this; } }