D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Socket
/
ResolutionError
/
Filename :
error_code-i.ri
back
Copy
U:RDoc::AnyMethod[iI"error_code:ETI"'Socket::ResolutionError#error_code;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"XReturns the raw error code indicating the cause of the hostname resolution failure.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"begin ;TI"2 Addrinfo.getaddrinfo("ruby-lang.org", nil) ;TI")rescue Socket::ResolutionError => e ;TI", if e.error_code == Socket::EAI_AGAIN ;TI"6 puts "Temporary failure in name resolution." ;TI" end ;TI" end ;T:@format0o; ; [I":Note that error codes depend on the operating system.;T: @fileI"ext/socket/init.c;T:0@omit_headings_from_table_of_contents_below0I"error_code -> integer ;T0[ I"();T@FI"ResolutionError;TcRDoc::NormalClass00