Add SparkError class to handle error and exceptions.

Add an SparkError class which will enclose all errors thrown inside spark. Each error will be represented by a unique errorcode which will be a string. 

Naming convention of errorcode string ? (Ideas)
( Currently I added a prefix SPARK_ERR + library).

@dinhviethoa @devoncarew