Sha256: 516c977ed60218410359796ecf62a81318eecb9f12c077a7e049e31c1b51d8e5

Contents?: true

Size: 1.17 KB

Versions: 13

Compression:

Stored size: 1.17 KB

Contents

<h4>Possible Errors:</h4>
<p>
  Your request may be rejected with a <code>400 Bad Request</code> HTTP status
  code and an error from the following set:
</p>

<table class="endpoint-errors">
  <thead>
    <tr>
      <!-- <th>Error</th> -->
      <th>Code</th>
      <th>Message</th>
    </tr>
  </thead>

  <tbody>
    <% @error_tags.each do |tag| %>
      <%
        tag.text ||= ''
        error = {}
        buf = tag.text.strip.sub(/^\[([^\]]+)\]/, '').strip
        error[:status] = $1
        buf = buf.sub(/"\[([^\]]+)\]([^"]+)"/, '').strip
        error[:code] = $1.strip
        error[:message] = $2
        error[:cause] = buf.strip
      %>
      <tr>
        <% if false %>
          <td>
            <%= error[:status] %>
            <%= Rack::Utils::HTTP_STATUS_CODES[error[:status].to_i] %>
          </td>
        <% end %>
        <td>
          <code><%= error[:code] %></code>
        </td>
        <td>
          <%= error[:message] %>
          <% unless error[:cause].empty? %>
            <hr />
            <strong>Cause:</strong>
            <%= error[:cause].sub(/^because /i, '').capitalize %>
          <% end %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
yard-api-0.3.0 templates/api/tags/html/throws.erb
yard-api-0.2.3 templates/api/tags/html/throws.erb
yard-api-0.2.2 templates/api/tags/html/throws.erb
yard-api-0.2.1 templates/api/tags/html/throws.erb
yard-api-0.1.10 templates/api/tags/html/throws.erb
yard-api-0.1.8 templates/api/tags/html/throws.erb
yard-api-0.1.7 templates/api/tags/html/throws.erb
yard-api-0.1.6 templates/api/tags/html/throws.erb
yard-api-0.1.5 templates/api/tags/html/throws.erb
yard-api-0.1.4 templates/api/tags/html/throws.erb
yard-api-0.1.3 templates/api/tags/html/throws.erb
yard-api-0.1.2 templates/api/tags/html/throws.erb
yard-api-0.1.1 templates/api/tags/html/throws.erb