# billingo/4.2.9/src/Exceptions/BadContentException.php

Billingo Official for WooCommerce, version 4.2.9. 33 lines.

- Page: https://pluginprobe.com/plugins/billingo/4.2.9/code/src/Exceptions/BadContentException.php
- Raw: https://pluginprobe.com/plugins/billingo/4.2.9/raw/src/Exceptions/BadContentException.php
- Modified: 2025-05-26T04:53:08+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/billingo/4.2.9/code/src/Exceptions/BadContentException.php#L10-L20`.

```php
<?php

namespace App\Billingo\Exceptions;

use App\Billingo\Service\SelfTest;
use Exception;

class BadContentException extends BillingoException
{

    public function __construct(
        private readonly SelfTest $selfTest,
        int $code = 0,
        Exception $previous = null
    ) {
        parent::__construct($code, $previous);
    }
    public function getErrorMessage(): string
    {
        return 'Bad Content';
    }

    public function getSelfTest(): SelfTest
    {
        return $this->selfTest;
    }

    public function getErrors(): ?array
    {
        return $this->selfTest->getErrors();
    }
}

```
