GoogleApiAdsCommon
[ class tree: GoogleApiAdsCommon ] [ index: GoogleApiAdsCommon ] [ all elements ]

Class: ValidationException

Source Location: /Common/Lib/ValidationException.php

Class Overview

Exception
   |
   --ValidationException

Exception class for any client library validation error.


Methods


Inherited Variables

Class: Exception (Internal Class)

$code
$file
$line
$message
$previous
$string
$trace

Inherited Methods

Class: Exception (Internal Class)

constructor __construct ( [$message = ], [$code = ], [$previous = ] )
getCode ( )
getFile ( )
getLine ( )
getMessage ( )
getPrevious ( )
getTrace ( )
getTraceAsString ( )
__clone ( )
__toString ( )

Class Details

[line 34]
Exception class for any client library validation error.



[ Top ]


Class Methods


constructor __construct [line 42]

ValidationException __construct( string $trigger, string $value, string $message)

Constructor for ValidationException where the exception will appear as "Validation failed for [$trigger] with value [$value]: $message".



Tags:

access:  public


Overrides Exception::constructor __construct ( [$message = ], [$code = ], [$previous = ] ) (parent method not documented)

Parameters:

string   $trigger   the trigger for the validation error
string   $value   the value for the trigger
string   $message   the message representing the error in validation

[ Top ]


Documentation generated by phpDocumentor 1.4.3