Organize EA exceptions
Added return type checking for EPL