public function __construct($rejectedProp, $acceptedProps) { natcasesort($acceptedProps); $message = $rejectedProp . ' is not a valid UI property.'; $message .= ' Must be one of [ ' . implode(' | ', $acceptedProps) . ' ]'; parent::__construct($message); }
public function __construct($function, $requiredType, $extra = '') { $message = "The value for {$function} must be of type ({$requiredType})."; if ($extra !== '') { $message .= ' ' . $extra; } parent::__construct($message); }
public function __construct($invalidLabel = '') { if (is_string($invalidLabel)) { $message = 'Labels cannot be blank, must be a non-empty string.'; } else { $message = gettype($invalidLabel) . ' is not a valid label, must be a non-empty string.'; } parent::__construct($message); }
public function __construct($badString) { if (is_string($badString) && empty($badString)) { $message = 'Must be a non empty datetime string which Carbon can parse.'; } else { $message = gettype($badString) . ' is invalid, must be a datetime string which Carbon can parse.'; } parent::__construct($message); }
public function __construct($invalidElementId = '', $code = 0) { if (is_string($invalidElementId)) { $message = 'ElementIds cannot be blank, must be a non-empty string.'; } else { $message = gettype($invalidElementId) . ' is not a valid HTML element ID, must be a non-empty string.'; } parent::__construct($message, $code); }
public function __construct($badString) { if (is_string($badString) && empty($badString)) { $message = 'Must be a non empty string which follows standard DateTime Formatting'; } else { $message = gettype($badString) . ' is invalid, must be a datetime format string which Carbon can use.'; } parent::__construct($message); }
public function __construct($badZone) { if (is_string($badZone)) { $message = "{$badZone} is not a valid timezone."; } else { $message = gettype($badZone) . ' is not a valid timezone.'; } parent::__construct($message); }
public function __construct($columnIndex, $count) { if (is_int($columnIndex)) { $message = $columnIndex . ' is an invalid column index, must be 0 - ' . ($count - 1) . '.'; } else { $message = gettype($columnIndex) . ' is an invalid column index, must an (int), 0 - ' . ($count - 1) . '.'; } parent::__construct($message); }
public function __construct($invalidType, $acceptedTypes, $code = 0) { if (is_string($invalidType)) { $message = "{$invalidType} is not a valid column type."; } else { $message = gettype($invalidType) . ' is not a valid column type.'; } $message .= ' Must one of [ ' . implode(' | ', $acceptedTypes) . ' ]'; parent::__construct($message, $code); }
public function __construct($invalidRole, $validRoles) { if (is_string($invalidRole)) { $message = "{$invalidRole} is not a valid column role, must a one of "; } else { $message = gettype($invalidRole) . ' is not a valid column role, must a one of '; } $message .= '[ ' . implode(' | ', $validRoles) . ' ]'; parent::__construct($message); }
public function __construct($invalidOptions) { $type = gettype($invalidOptions); parent::__construct("Cannot create options with ({$type}), must be an array"); }
public function __construct($badLavaObject, $code = 0) { $message = "'{$badLavaObject}' is not a valid Lavachart object."; parent::__construct($message, $code); }
public function __construct() { $message = "Invalid ChartWrapper parameters, must be (Chart, string)"; parent::__construct($message); }
public function __construct($InvalidDataTable = null) { $message = gettype($InvalidDataTable) . ' is not a valid DataTable.'; parent::__construct($message); }
public function __construct($invalidFilter, $types) { $message = $invalidFilter . ' is not a valid filter, must be one of [ ' . implode(' | ', $types) . ']'; parent::__construct($message); }
public function __construct($type, $label, $code = 0) { $message = "{$type}('{$label}') was not found."; parent::__construct($message, $code); }
public function __construct($badString) { $message = 'Must be a Carbon instance or a datetime string able to be parsed by Carbon.'; parent::__construct($message); }
public function __construct() { $message = 'Invalid row property, array with keys type (string) with values [ v | f | p ] '; parent::__construct($message, 0); }
public function __construct() { parent::__construct("There was an error decoding the JSON."); }
public function __construct($badParam, $function, $requiredParam) { parent::__construct(gettype($badParam) . " is not a valid value for {$function}, must be of type {$requiredParam}"); }
public function __construct($invalidCol, $code = 0) { $message = gettype($invalidCol) . " is an invalid column definition, must be an array with 1-3 strings defining type, desc, id"; parent::__construct($message, $code); }
public function __construct($code = 0) { $message = 'You must bind ControlWrappers to ChartWrappers, as singles or arrays.'; parent::__construct($message, $code); }
public function __construct($code = 0) { $message = "Invalid div dimensions, array('height' => (int), 'width' => (int))"; parent::__construct($message, $code); }
public function __construct($label) { $message = "Dashboard('{$label}') was not found."; parent::__construct($message); }
public function __construct($cellCount, $columnCount, $code = 0) { $message = 'Invalid number of cells, must be less than or equal to the number of columns. '; $message .= "(cells: {$cellCount} > columns: {$columnCount})"; parent::__construct($message, $code); }
public function __construct() { $message = "Invalid ControlWrapper parameters, must be (Filter, string"; parent::__construct($message); }
public function __construct($invalidRow, $code = 0) { $message = gettype($invalidRow) . " is an invalid row definition, must be of type (null|array)."; parent::__construct($message, $code); }
public function __construct($invalidChart, $validCharts) { $badChart = (string) $invalidChart; $message = "'{$badChart}' is not a valid chart type, must be one of " . ($message .= '[ ' . implode(' | ', $validCharts) . ']'); parent::__construct($message); }
public function __construct(Chart $chart, $code = 0) { $message = $chart::TYPE . '(' . $chart->getLabel() . ') has no DataTable.'; parent::__construct($message, $code); }