Fixed 'undefined class BuildException' by throwing a generic DomainException