Accelerator Independent Data Access / PVAccess 2.0
AIDA-PVA is the latest version of the AIDA framework. Built on top of EPICS 7 it enables client applications to programmatically access and manage any device or database on the SLAC Network using simple channel names.
Loading...
Searching...
No Matches
handleExceptions.m
1function handleExceptions(e, varargin)
2 reason = '';
3 if (isa(e,'matlab.exception.JavaException'))
4 ex = e.ExceptionObject;
5 assert(isjava(ex));
6 reason = ex.getMessage;
7 else
8 reason = e.message;
9 end
10 if ( size(varargin) > 0 )
11 reason = sprintf('%s: %s', sprintf(varargin{1}, varargin{2:end}), reason);
12 end
13 disp (reason);
14% error(reason);
15end