$message = 'Email already taken';
class EmailUniqueException extends ValidationException
{
public static $defaultTemplates = [
self::MODE_DEFAULT => [
self::STANDARD => 'put $message here',
],
];
}
I have the code above, in the self::Standard I can easily put my error message as string, but I want to use the variable message because of language specific where app can supply another language text.