Amazon AWS SDK Guía de usuario Pagina 21

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 76
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 20
java.security.Security.setProperty("networkaddress.cache.ttl" , "60");
Note that the JVM is a shared resource; multiple Java applications could be using the same JVM.The
TTL value affects all Java applications that use the JVM.
Exception Handling
Understanding how and when the AWS SDK for Java throws exceptions is important in order to build
high-quality applications using the SDK.The following sections describe the different cases of exceptions
that are thrown by the SDK and how to handle them appropriately.
Why Unchecked Exceptions?
The AWS Java SDK uses runtime (or unchecked) exceptions instead of checked exceptions for a few
reasons:
• To allow developers fine-grained control over the errors they want to handle without forcing them to
handle exceptional cases they aren't concerned about (and making their code overly verbose)
• To prevent scalability issues inherent with checked exceptions in large applications
In general, checked exceptions work well on small scales, but can become troublesome as applications
grow and become more complex.
For more information about the use of checked and unchecked exceptions, see the following articles:
• Unchecked Exceptions—The Controversy
• The Trouble with Checked Exceptions
• Java's checked exceptions were a mistake (and here's what I would like to do about it)
AmazonServiceException (and Subclasses)
This is the main type of exception that you'll need to deal with when using the AWS SDK for Java.This
exception represents an error response from an AWS service. For example, if you request to terminate
an Amazon EC2 instance that doesn't exist, EC2 will return an error response and all the details of that
error response will be included in the thrown AmazonServiceException. For some cases, a subclass
of AmazonServiceException will be thrown to allow developers fine grained control over handling error
cases through catch blocks.
When you encounter an AmazonServiceException, you know that your request was successfully sent
to the AWS service, but could not be successfully processed either because of errors in the request's
parameters or because of issues on the service side.
AmazonServiceException has several useful fields in it, including:
• Returned HTTP status code
• Returned AWS error code
• Detailed error message from the service
• AWS request ID for the failed request
AmazonServiceException also includes a field that describes whether the failed request was the
caller's fault (i.e., a request with illegal values) or the AWS service's fault (i.e., an internal service error).
Version v1.0.0
17
AWS SDK for Java Developer Guide
Exception Handling
Vista de pagina 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 75 76

Comentarios a estos manuales

Sin comentarios

Miele G 4925 SCU CLST Futura Classic Plus manuals

Owner’s manuals and user’s guides for Unknown Miele G 4925 SCU CLST Futura Classic Plus.
We providing 1 pdf manuals Miele G 4925 SCU CLST Futura Classic Plus for download free by document types: Energy Guide


Table of contents





More products and manuals for Unknown Miele

Models Document Type
T8023 Specifications Sheet   Miele T8023 Specification Sheet, 3 pages
K 1901 Vi Specifications Sheet   Miele K 1901 Vi Specification Sheet, 1 pages
KMR 1355 Specifications Sheet   Miele KMR 1355 Specification Sheet [en] , 3 pages
KM451BK User Manual   Miele KM451BK User's Manual, 12 pages
K 1903 SF Energy Guide Miele K 1903 SF Energy Guide, 1 pages
KWT 1603 SF Specifications Sheet   Miele KWT 1603 SF Specification Sheet, 3 pages
KF 1803 Vi Specifications Sheet    Miele KF 1803 Vi Specification Sheet, 7 pages
DA 7000 D AURA Installation Manual Miele DA 7000 D Aura Installation Manual, 2 pages
DA 3480 Specifications Sheet Miele DA 3480 Specification Sheet, 1 pages
F 1803 SF Specifications Sheet   Miele F 1803 SF Specification Sheet, 3 pages
KM5676 User Manual   Miele KM5676 User's Manual, 44 pages
F 1801 SF Energy Guide Miele F 1801 SF Energy Guide, 1 pages
DA 249 Specifications Sheet   Miele DA 249 Specification Sheet, 2 pages
H 6800 BM Specifications Sheet   Miele H 6800 BM Specification Sheet, 9 pages
Little Giant PW 6065 Energy Guide   Miele Little Giant PW 6065 Energy Guide, 1 pages
G 5605 SCi Futura Dimension Series Specifications Sheet   Miele G 5605 SCi Futura Dimension Series Specification Sheet, 5 pages
EGW 2062 Specifications Sheet   Miele EGW 2062 Specification Sheet, 1 pages
F 1903 SF Energy Guide Miele F 1903 SF Energy Guide, 1 pages
KF 1801 Vi Specifications Sheet   Miele KF 1801 Vi Specification Sheet, 4 pages
F 1803 Vi Specifications Sheet   Miele F 1803 Vi Specification Sheet, 6 pages