You are here

public function FacebookAlbumInterface::translate_error in Facebook Album 8

Translate API errors into a user friendly error.

Parameters

$code: The error code returned from the facebook API or internally

$message: The corresponding message to that error code, if there is one

Return value

string A user friendly error message

1 method overrides FacebookAlbumInterface::translate_error()
FacebookAlbum::translate_error in src/FacebookAlbum.php
Translate API errors into a user friendly error.

File

src/FacebookAlbumInterface.php, line 34
Contains \Drupal\facebook_album\FacebookAlbumInterface.

Class

FacebookAlbumInterface
FacebookAlbumInterface.

Namespace

Drupal\facebook_album

Code

public function translate_error($code, $message);