Errors.php

<?php

namespace Phad;

/**
 * Contains const error messages to use for exceptions & other errors. Errors written before December 2025 are not listed here.
 */
class Errors {

    const PARSE_FUNCTIONS_TOO_MANY = "Your function '%s' must contain two parts separated by a colon. Example `call:custom_function` or `role:admin`. Functions are separated by semi-colons. You may exclude the colon to call a standard function, like `std:false` is the same as `false`";
    const STD_ACCESS_FUNCTION_NOT_EXIST = "Standard Access function '%s:%s' does not exist, so access string '%s' cannot be processed.";
    const DATA_TYPE_NOT_SUPPORTED = "Cannot process data node with type '%s'. You may override `Phad::read_data()` to support new types. Valid types are defined in `Phad\enum\DataTypes`";
}