Punic APIs
  • Namespace
  • Class
  • Tree
  • Todo

Namespaces

  • Punic
    • Exception

Exceptions

  • BadArgumentType
  • BadDataFileContents
  • DataFileNotFound
  • DataFileNotReadable
  • DataFolderNotFound
  • InvalidDataFile
  • InvalidLocale
  • NotImplemented
  • ValueNotInList

Class BadArgumentType

An exception raised when a function meets an argument of an unsupported type.

Exception implements Throwable
Extended by Punic\Exception
Extended by Punic\Exception\BadArgumentType
Namespace: Punic\Exception
Located at Exception/BadArgumentType.php

Methods summary

public
# __construct( mixed $argumentValue, string $destinationTypeDescription, Exception $previous = null )

Initializes the instance.

Initializes the instance.

Parameters

$argumentValue
The value of the invalid argument
$destinationTypeDescription
The description of the destination type
$previous
The previous exception used for the exception chaining

Overrides

Punic\Exception::__construct
public mixed
# getArgumentValue( )

Retrieves the value of the invalid argument.

Retrieves the value of the invalid argument.

Returns

mixed
public string|array<string>
# getDestinationTypeDescription( )

Retrieves the destination type (or a list of destination types).

Retrieves the destination type (or a list of destination types).

Returns

string|array<string>

Methods inherited from Exception

__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()

Constants summary

Constants inherited from Punic\Exception

BAD_ARGUMENT_TYPE, BAD_DATA_FILE_CONTENTS, DATA_FILE_NOT_FOUND, DATA_FILE_NOT_READABLE, DATA_FOLDER_NOT_FOUND, INVALID_DATAFILE, INVALID_LOCALE, NOT_IMPLEMENTED, VALUE_NOT_IN_LIST

Punic APIs API documentation generated by ApiGen