File: cockpit-error.html

package info (click to toggle)
cockpit 239-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 67,268 kB
  • sloc: javascript: 245,474; ansic: 72,273; python: 23,634; xml: 6,155; sh: 2,919; makefile: 923; sed: 5
file content (101 lines) | stat: -rw-r--r-- 4,449 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>cockpit.js: Errors</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="Cockpit Guide">
<link rel="up" href="api-base1.html" title="API: base1">
<link rel="prev" href="cockpit-locale.html" title="cockpit.js: Localization">
<link rel="next" href="cockpit-login.html" title="cockpit.js: User Session">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
<td><a accesskey="p" href="cockpit-locale.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="api-base1.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Cockpit Guide</th>
<td><a accesskey="n" href="cockpit-login.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="cockpit-error"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>cockpit.js: Errors</h2>
<p>cockpit.js: Errors — Problem codes and messages</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsection">
<a name="cockpit-problems"></a><h2>Problem Codes</h2>
<p>Cockpit represents problems with standardized problem string codes.</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><code class="code">"access-denied"</code></span></p></td>
<td><p>The user is not permitted to perform the action in question.</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="code">"authentication-failed"</code></span></p></td>
<td><p>User authentication failed.</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="code">"internal-error"</code></span></p></td>
<td><p>An unexpected internal error without further info. This should
          not happen during the normal course of operations.</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="code">"no-cockpit"</code></span></p></td>
<td><p>The system does not have a compatible version of Cockpit installed
          or installed properly.</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="code">"no-session"</code></span></p></td>
<td><p>Cockpit is not logged in.</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="code">"not-found"</code></span></p></td>
<td><p>Something specifically requested was not found, such as a file,
          executable etc.</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="code">"terminated"</code></span></p></td>
<td><p>Something was terminated forcibly, such as a connection, process
          session, etc.</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="code">"timeout"</code></span></p></td>
<td><p>Something timed out.</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="code">"unknown-hostkey"</code></span></p></td>
<td><p>The remote host had an unexpected or unknown key.</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="code">"no-forwarding"</code></span></p></td>
<td><p>Could not forward authentication credentials to the remote host.</p></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsection">
<a name="cockpit-messages"></a><h2>cockpit.message()</h2>
<pre class="programlisting">
message = cockpit.message(problem)
message = cockpit.message(exception)
</pre>
<p>Return a message for the <code class="code">exception</code> or <code class="code">problem</code> code
      passed as an argument. If the argument is an object with a <code class="code">"message"</code> property,
      as is the case with most exceptions, that will be returned directly. If the argument is
      an object with a <code class="code">"problem"</code> property, then it will be used as the problem code.
      An appropriate message will be returned for problem codes.</p>
</div>
</div>
<div class="footer"><hr></div>
</body>
</html>