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

Billingo Official for WooCommerce, version 4.2.9. 28 lines.

- Page: https://pluginprobe.com/plugins/billingo/4.2.9/code/src/Exceptions/ValidationException.php
- Raw: https://pluginprobe.com/plugins/billingo/4.2.9/raw/src/Exceptions/ValidationException.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/ValidationException.php#L10-L20`.

```php
<?php

namespace App\Billingo\Exceptions;

use Exception;

class ValidationException extends BillingoException
{

    public function __construct(
        private readonly array $errors,
        int $code = 0,
        Exception $previous = null
    ) {
        parent::__construct($code, $previous);
    }

    public function getErrorMessage(): string
    {
        return 'Validation Failed: ' . json_encode($this->errors);
    }

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

```
