begin  
  raise 'A test exception.'  
rescue Exception => e  
  puts e.message  
  puts e.backtrace.inspect  
end 

 

相关文章:

  • 2021-08-14
  • 2021-05-23
  • 2021-04-05
  • 2021-06-12
  • 2021-11-13
  • 2021-12-12
  • 2021-07-28
  • 2022-12-23
猜你喜欢
  • 2021-11-02
  • 2021-08-06
  • 2022-12-23
  • 2021-08-19
  • 2021-10-30
  • 2022-02-22
  • 2021-07-31
相关资源
相似解决方案