Helper :: validateResource() only throws DomainException, and $validTypes is now optional. Error is reserved for socket operations only, so its $previous was removed.