Punic APIs
  • Namespace
  • Class
  • Tree
  • Todo

Namespaces

  • Punic
    • Exception

Exceptions

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

Class DataFileNotFound

An exception raised when an data file has not been found.

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

Methods summary

public
# __construct( string $identifier, string $locale = '', string $fallbackLocale = '', Exception $previous = null )

Initializes the instance.

Initializes the instance.

Parameters

$identifier
The data file identifier
$locale
The preferred locale (if the data file is locale-specific)
$fallbackLocale
The fallback locale (if the data file is locale-specific)
$previous
The previous exception used for the exception chaining

Overrides

Punic\Exception::__construct
public string
# getIdentifier( )

Retrieves the bad data file identifier.

Retrieves the bad data file identifier.

Returns

string
public string
# getLocale( )

Retrieves the preferred locale.

Retrieves the preferred locale.

Returns

string
public string
# getFallbackLocale( )

Retrieves the fallback locale.

Retrieves the fallback locale.

Returns

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