The capabilities of the Delegate classifier are made available when you code a Delegate type, which is the basis of a variable that references an EGL function.
call MyServiceType.myFunction() returning to myCallbackFunction onException MyLib.serviceExceptionHandler;
Delegate MyDelegateType (exp AnyException in) end
serviceExceptionHandler SystemDelegateType;
MyLib.serviceExceptionHandler = myExceptionHandler;
Function myExceptionHandler(exp AnyException in) ; end
Please note that the characteristics of the myExceptionHandler function are the same as the characteristics of the SystemDelegateType type. That is, the SystemDelegateType type describes a function that accepts a single parameter of type AnyException and does not return a value. That sameness is what enables you to substitute your function for the one that is used by default.
A Delegate type does not include a stereotype.