Inserting CLI verification in 'application/core/Exceptions.php'

Inserting CLI verification in 'application/core/Exceptions.php' based in #2279

Signed-off-by: willmendesneto <willmendesneto@gmail.com>