ICE系列培训1.pptVIP

  • 22
  • 0
  • 约2.21万字
  • 约 81页
  • 2017-09-14 发布于广东
  • 举报
2.7 Interfaces,Operations,and Exceptions (6) Exception Inheritance 异常是可以继承的,例如: Exception ErrorBase { string reason; } Exception RuntimeError extends ErrorBase { … }; 方法的异常规范列表中可以只列出基类异常,这样方法内可以抛出所有基类和子类异常;异常只支持单继承。 2.7 Interfaces,Operations,and Exceptions (7) Ice Run-Time Exceptions 2.7 Interfaces,Operations,and Exceptions (8) Interface Semantics and Proxies interface经过编译后会自动生成客户端proxy和服务端骨架,在Slice中interface后跟“*”表示proxy,例如: module Demo{ exception BadZoneName{…}; interface Clock { … }; interface WorldTime { idempotent void addZone(string zoneName, Clock* zoneClock); idempotent Clock* find

文档评论(0)

1亿VIP精品文档

相关文档