I am trying to throw an exception error when the code takes a non empty array as an input
if isempty(array)
x = a+b+c
else
throw(DomainError(array, "send empty array"))
end
end
DomainError only works with variables hence i am trying to find something which can work on arrays. Please suggest solution.
Thanks in advance!