PHP Class GraphQL\Error\FormattedError

Mostrar archivo Open project: webonyx/graphql-php Class Usage Examples

Public Methods

Method Description
create ( $error, array $locations = [] ) : array
createFromException ( Exception $e ) : array
createFromPHPError ( ErrorException $e ) : array
printVar ( $var ) : string

Private Methods

Method Description
toSafeTrace ( array $trace ) : array Converts error trace to serializable array

Method Details

create() public static method

Deprecation: as of 8.0
public static create ( $error, array $locations = [] ) : array
$error
$locations array
return array

createFromException() public static method

public static createFromException ( Exception $e ) : array
$e Exception
return array

createFromPHPError() public static method

public static createFromPHPError ( ErrorException $e ) : array
$e ErrorException
return array

printVar() public static method

public static printVar ( $var ) : string
$var
return string