public override void amdBadAdd_async(Test.AMD_MyObject_amdBadAdd cb, int x, int y, Ice.Current current) { Thread thread = new Thread(delegate() { Thread.Sleep(10); cb.ice_exception(new Test.InvalidInputException()); }); thread.IsBackground = true; thread.Start(); }
public override void opRequiredException_async(Test.AMD_Initial_opRequiredException cb, Ice.Optional<int> a, Ice.Optional<string> b, Ice.Optional<Test.OneOptional> o, Ice.Current current) { Test.RequiredException e = new Test.RequiredException(); e.a = a; e.b = b; e.o = o; if(b.HasValue) { e.ss = b.Value; } if(o.HasValue) { e.o2 = o.Value; } cb.ice_exception(e); }
public override void opDerivedException_async(Test.AMD_Initial_opDerivedException cb, Ice.Optional<int> a, Ice.Optional<string> b, Ice.Optional<Test.OneOptional> o, Ice.Current current) { cb.ice_exception(new Test.DerivedException(false, a, b, o, b, o)); }
amdBadSystemAdd_async(Test.AMD_MyObject_amdBadSystemAdd cb, int x, int y, Ice.Current current) { Thread thread = new Thread(delegate() { Thread.Sleep(10); cb.ice_exception(new Ice.InitializationException("testing")); }); thread.IsBackground = true; thread.Start(); }
amdNotExistAdd_async(Test.AMD_MyObject_amdNotExistAdd cb, int x, int y, Ice.Current current) { Thread thread = new Thread(delegate() { Thread.Sleep(10); cb.ice_exception(new Ice.ObjectNotExistException()); }); thread.IsBackground = true; thread.Start(); }
public override void opWithUserException_async(Test.AMD_Metrics_opWithUserException cb, Ice.Current current) { cb.ice_exception(new UserEx()); }
public override void opWithUnknownException_async(Test.AMD_Metrics_opWithUnknownException cb, Ice.Current current) { cb.ice_exception(new ArgumentOutOfRangeException()); }
public override void opWithRequestFailedException_async(Test.AMD_Metrics_opWithRequestFailedException cb, Ice.Current current) { cb.ice_exception(new Ice.ObjectNotExistException()); }
public override void opWithLocalException_async(Test.AMD_Metrics_opWithLocalException cb, Ice.Current current) { cb.ice_exception(new Ice.SyscallException()); }