Sha256: 4d2992e24f3e8a761bdc99728453dc2f2dccc177e54e15b89a51a51ce3a8da24

Contents?: true

Size: 1.79 KB

Versions: 4

Compression:

Stored size: 1.79 KB

Contents

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>error (Keystone::Base)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File lib/keystone/base.rb, line 15</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">error</span>(<span class="ruby-identifier">message</span>)
      <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">message</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Exception</span>
        <span class="ruby-identifier">log</span>(<span class="ruby-identifier">:ERROR</span>,<span class="ruby-node">&quot;#{message.message}&quot;</span>)
        <span class="ruby-identifier">message</span>.<span class="ruby-identifier">backtrace</span>.<span class="ruby-identifier">each_with_index</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">line</span>, <span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
          <span class="ruby-identifier">log</span>(<span class="ruby-identifier">:ERROR</span>,<span class="ruby-node">&quot;#{line})&quot;</span>,<span class="ruby-keyword kw">false</span>)
        }
      <span class="ruby-keyword kw">else</span>
        <span class="ruby-identifier">log</span>(<span class="ruby-identifier">:ERROR</span>,<span class="ruby-identifier">message</span>.<span class="ruby-identifier">to_s</span>)
      <span class="ruby-keyword kw">end</span>
    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
keystone-0.0.32 doc/classes/Keystone/Base.src/M000056.html
keystone-0.0.31 doc/classes/Keystone/Base.src/M000056.html
keystone-0.0.30 doc/classes/Keystone/Base.src/M000056.html
keystone-0.0.29 doc/classes/Keystone/Base.src/M000056.html