/usr/share/doc/php-opencloud/api/source-class-OpenCloud.Common.Exceptions.ResourceNotFoundException.html is in php-opencloud-doc 1.10.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="ApiGen 2.8.0">
<meta name="robots" content="noindex">
<title>File OpenCloud/Common/Exceptions/ResourceNotFoundException.php | PHP OpenCloud API</title>
<script type="text/javascript" src="resources/combined.js?117538352"></script>
<script type="text/javascript" src="elementlist.js?4292216789"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360">
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li class="active"><a href="namespace-OpenCloud.html">OpenCloud<span></span></a>
<ul>
<li><a href="namespace-OpenCloud.Autoscale.html">Autoscale<span></span></a>
<ul>
<li><a href="namespace-OpenCloud.Autoscale.Resource.html">Resource</a>
</li>
</ul></li>
<li><a href="namespace-OpenCloud.CloudMonitoring.html">CloudMonitoring<span></span></a>
<ul>
<li><a href="namespace-OpenCloud.CloudMonitoring.Exception.html">Exception</a>
</li>
<li><a href="namespace-OpenCloud.CloudMonitoring.Resource.html">Resource</a>
</li>
</ul></li>
<li class="active"><a href="namespace-OpenCloud.Common.html">Common<span></span></a>
<ul>
<li><a href="namespace-OpenCloud.Common.Collection.html">Collection</a>
</li>
<li><a href="namespace-OpenCloud.Common.Constants.html">Constants</a>
</li>
<li class="active"><a href="namespace-OpenCloud.Common.Exceptions.html">Exceptions</a>
</li>
<li><a href="namespace-OpenCloud.Common.Http.html">Http<span></span></a>
<ul>
<li><a href="namespace-OpenCloud.Common.Http.Message.html">Message</a>
</li>
</ul></li>
<li><a href="namespace-OpenCloud.Common.Log.html">Log</a>
</li>
<li><a href="namespace-OpenCloud.Common.Resource.html">Resource</a>
</li>
<li><a href="namespace-OpenCloud.Common.Service.html">Service</a>
</li>
</ul></li>
<li><a href="namespace-OpenCloud.Compute.html">Compute<span></span></a>
<ul>
<li><a href="namespace-OpenCloud.Compute.Constants.html">Constants</a>
</li>
<li><a href="namespace-OpenCloud.Compute.Exception.html">Exception</a>
</li>
<li><a href="namespace-OpenCloud.Compute.Resource.html">Resource</a>
</li>
</ul></li>
<li><a href="namespace-OpenCloud.Database.html">Database<span></span></a>
<ul>
<li><a href="namespace-OpenCloud.Database.Resource.html">Resource</a>
</li>
</ul></li>
<li><a href="namespace-OpenCloud.DNS.html">DNS<span></span></a>
<ul>
<li><a href="namespace-OpenCloud.DNS.Collection.html">Collection</a>
</li>
<li><a href="namespace-OpenCloud.DNS.Resource.html">Resource</a>
</li>
</ul></li>
<li><a href="namespace-OpenCloud.Identity.html">Identity<span></span></a>
<ul>
<li><a href="namespace-OpenCloud.Identity.Constants.html">Constants</a>
</li>
<li><a href="namespace-OpenCloud.Identity.Resource.html">Resource</a>
</li>
</ul></li>
<li><a href="namespace-OpenCloud.Image.html">Image<span></span></a>
<ul>
<li><a href="namespace-OpenCloud.Image.Enum.html">Enum</a>
</li>
<li><a href="namespace-OpenCloud.Image.Resource.html">Resource<span></span></a>
<ul>
<li><a href="namespace-OpenCloud.Image.Resource.JsonPatch.html">JsonPatch</a>
</li>
<li><a href="namespace-OpenCloud.Image.Resource.Schema.html">Schema</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-OpenCloud.LoadBalancer.html">LoadBalancer<span></span></a>
<ul>
<li><a href="namespace-OpenCloud.LoadBalancer.Enum.html">Enum</a>
</li>
<li><a href="namespace-OpenCloud.LoadBalancer.Resource.html">Resource</a>
</li>
</ul></li>
<li><a href="namespace-OpenCloud.ObjectStore.html">ObjectStore<span></span></a>
<ul>
<li><a href="namespace-OpenCloud.ObjectStore.Constants.html">Constants</a>
</li>
<li><a href="namespace-OpenCloud.ObjectStore.Exception.html">Exception</a>
</li>
<li><a href="namespace-OpenCloud.ObjectStore.Resource.html">Resource</a>
</li>
<li><a href="namespace-OpenCloud.ObjectStore.Upload.html">Upload</a>
</li>
</ul></li>
<li><a href="namespace-OpenCloud.Orchestration.html">Orchestration</a>
</li>
<li><a href="namespace-OpenCloud.Queues.html">Queues<span></span></a>
<ul>
<li><a href="namespace-OpenCloud.Queues.Exception.html">Exception</a>
</li>
<li><a href="namespace-OpenCloud.Queues.Resource.html">Resource</a>
</li>
</ul></li>
<li><a href="namespace-OpenCloud.Volume.html">Volume<span></span></a>
<ul>
<li><a href="namespace-OpenCloud.Volume.Resource.html">Resource</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
</ul>
</div>
<hr>
<div id="elements">
<h3>Exceptions</h3>
<ul>
<li><a href="class-OpenCloud.Common.Exceptions.AsyncError.html">AsyncError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.AsyncHttpError.html">AsyncHttpError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.AsyncTimeoutError.html">AsyncTimeoutError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.AttributeError.html">AttributeError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.AuthenticationError.html">AuthenticationError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.BaseException.html">BaseException</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.CdnError.html">CdnError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.CdnHttpError.html">CdnHttpError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.CdnNotAvailableError.html">CdnNotAvailableError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.CdnTtlError.html">CdnTtlError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.CollectionException.html">CollectionException</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.ContainerCreateError.html">ContainerCreateError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.ContainerDeleteError.html">ContainerDeleteError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.ContainerError.html">ContainerError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.ContainerNameError.html">ContainerNameError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.ContainerNotEmptyError.html">ContainerNotEmptyError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.ContainerNotFoundError.html">ContainerNotFoundError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.CreateError.html">CreateError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.CreateUpdateError.html">CreateUpdateError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.CredentialError.html">CredentialError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.DatabaseCreateError.html">DatabaseCreateError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.DatabaseDeleteError.html">DatabaseDeleteError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.DatabaseListError.html">DatabaseListError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.DatabaseNameError.html">DatabaseNameError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.DatabaseUpdateError.html">DatabaseUpdateError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.DeleteError.html">DeleteError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.DocumentError.html">DocumentError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.DomainError.html">DomainError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.EmptyResponseError.html">EmptyResponseError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.EndpointError.html">EndpointError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.FlavorError.html">FlavorError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.ForbiddenOperationException.html">ForbiddenOperationException</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.HttpError.html">HttpError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.HttpForbiddenError.html">HttpForbiddenError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.HttpOverLimitError.html">HttpOverLimitError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.HttpResponseException.html">HttpResponseException</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.HttpRetryError.html">HttpRetryError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.HttpTimeoutError.html">HttpTimeoutError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.HttpUnauthorizedError.html">HttpUnauthorizedError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.HttpUrlError.html">HttpUrlError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.IdRequiredError.html">IdRequiredError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.ImageError.html">ImageError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.InstanceCreateError.html">InstanceCreateError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.InstanceDeleteError.html">InstanceDeleteError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.InstanceError.html">InstanceError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.InstanceFlavorError.html">InstanceFlavorError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.InstanceNotFound.html">InstanceNotFound</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.InstanceUpdateError.html">InstanceUpdateError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.InvalidArgumentError.html">InvalidArgumentError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.InvalidIdTypeError.html">InvalidIdTypeError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.InvalidIpTypeError.html">InvalidIpTypeError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.InvalidParameterError.html">InvalidParameterError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.InvalidRequestError.html">InvalidRequestError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.IOError.html">IOError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.JsonError.html">JsonError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.LoggingException.html">LoggingException</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.MetadataCreateError.html">MetadataCreateError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.MetadataDeleteError.html">MetadataDeleteError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.MetadataError.html">MetadataError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.MetadataJsonError.html">MetadataJsonError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.MetadataKeyError.html">MetadataKeyError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.MetadataPrefixError.html">MetadataPrefixError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.MetadataUpdateError.html">MetadataUpdateError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.MisMatchedChecksumError.html">MisMatchedChecksumError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.MissingValueError.html">MissingValueError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.NameError.html">NameError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.NetworkCreateError.html">NetworkCreateError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.NetworkDeleteError.html">NetworkDeleteError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.NetworkError.html">NetworkError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.NetworkUpdateError.html">NetworkUpdateError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.NetworkUrlError.html">NetworkUrlError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.NoContentTypeError.html">NoContentTypeError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.NoNameError.html">NoNameError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.ObjectCopyError.html">ObjectCopyError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.ObjectError.html">ObjectError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.ObjFetchError.html">ObjFetchError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.RebuildError.html">RebuildError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.RecordTypeError.html">RecordTypeError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.ResourceBucketException.html">ResourceBucketException</a></li>
<li class="active"><a href="class-OpenCloud.Common.Exceptions.ResourceNotFoundException.html">ResourceNotFoundException</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.RuntimeException.html">RuntimeException</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.ServerActionError.html">ServerActionError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.ServerCreateError.html">ServerCreateError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.ServerDeleteError.html">ServerDeleteError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.ServerImageScheduleError.html">ServerImageScheduleError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.ServerIpsError.html">ServerIpsError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.ServerJsonError.html">ServerJsonError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.ServerUpdateError.html">ServerUpdateError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.ServerUrlError.html">ServerUrlError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.ServiceException.html">ServiceException</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.SnapshotError.html">SnapshotError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.TempUrlMethodError.html">TempUrlMethodError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.UnknownError.html">UnknownError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.UnknownParameterError.html">UnknownParameterError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.UnrecognizedServiceError.html">UnrecognizedServiceError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.UnsupportedExtensionError.html">UnsupportedExtensionError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.UnsupportedFeatureExtension.html">UnsupportedFeatureExtension</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.UnsupportedVersionError.html">UnsupportedVersionError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.UpdateError.html">UpdateError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.UrlError.html">UrlError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.UserCreateError.html">UserCreateError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.UserDeleteError.html">UserDeleteError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.UserListError.html">UserListError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.UserNameError.html">UserNameError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.UserUpdateError.html">UserUpdateError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.VolumeError.html">VolumeError</a></li>
<li><a href="class-OpenCloud.Common.Exceptions.VolumeTypeError.html">VolumeTypeError</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="">
<input type="hidden" name="ie" value="UTF-8">
<input type="text" name="q" class="text">
<input type="submit" value="Search">
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-OpenCloud.Common.Exceptions.html" title="Summary of OpenCloud\Common\Exceptions"><span>Namespace</span></a>
</li>
<li>
<a href="class-OpenCloud.Common.Exceptions.ResourceNotFoundException.html" title="Summary of OpenCloud\Common\Exceptions\ResourceNotFoundException"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
<li>
<a href="php-opencloud-api-api-documentation.zip" title="Download documentation as ZIP archive"><span>Download</span></a>
</li>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang"><?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-keyword1">namespace</span> OpenCloud\Common\Exceptions;
</span><span id="4" class="l"><a class="l" href="#4"> 4: </a>
</span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-keyword1">use</span> Guzzle\Http\Exception\BadResponseException;
</span><span id="6" class="l"><a class="l" href="#6"> 6: </a>
</span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-keyword1">class</span> <a id="ResourceNotFoundException" href="#ResourceNotFoundException">ResourceNotFoundException</a> <span class="php-keyword1">extends</span> HttpResponseException
</span><span id="8" class="l"><a class="l" href="#8"> 8: </a>{
</span><span id="9" class="l"><a class="l" href="#9"> 9: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">static</span> <span class="php-keyword1">function</span> <a id="_factory" href="#_factory">factory</a>(BadResponseException <span class="php-var">$exception</span>)
</span><span id="10" class="l"><a class="l" href="#10">10: </a> {
</span><span id="11" class="l"><a class="l" href="#11">11: </a> <span class="php-var">$response</span> = <span class="php-var">$exception</span>->getResponse();
</span><span id="12" class="l"><a class="l" href="#12">12: </a>
</span><span id="13" class="l"><a class="l" href="#13">13: </a> <span class="php-var">$message</span> = <span class="php-keyword2">sprintf</span>(
</span><span id="14" class="l"><a class="l" href="#14">14: </a> <span class="php-quote">"This resource you were looking for could not be found; the API returned a %s status code with this message:\n%s"</span>,
</span><span id="15" class="l"><a class="l" href="#15">15: </a> <span class="php-var">$response</span>->getStatusCode(),
</span><span id="16" class="l"><a class="l" href="#16">16: </a> (string) <span class="php-var">$response</span>->getBody()
</span><span id="17" class="l"><a class="l" href="#17">17: </a> );
</span><span id="18" class="l"><a class="l" href="#18">18: </a>
</span><span id="19" class="l"><a class="l" href="#19">19: </a> <span class="php-var">$e</span> = <span class="php-keyword1">new</span> self(<span class="php-var">$message</span>);
</span><span id="20" class="l"><a class="l" href="#20">20: </a> <span class="php-var">$e</span>->setResponse(<span class="php-var">$response</span>);
</span><span id="21" class="l"><a class="l" href="#21">21: </a> <span class="php-var">$e</span>->setRequest(<span class="php-var">$exception</span>->getRequest());
</span><span id="22" class="l"><a class="l" href="#22">22: </a>
</span><span id="23" class="l"><a class="l" href="#23">23: </a> <span class="php-keyword1">return</span> <span class="php-var">$e</span>;
</span><span id="24" class="l"><a class="l" href="#24">24: </a> }
</span><span id="25" class="l"><a class="l" href="#25">25: </a>}
</span><span id="26" class="l"><a class="l" href="#26">26: </a></span></code></pre>
<div id="footer">
PHP OpenCloud API API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>
|