Class: Google::Apis::AppengineV1beta5::ErrorHandler
- Inherits:
-
Object
- Object
- Google::Apis::AppengineV1beta5::ErrorHandler
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/appengine_v1beta5/classes.rb,
generated/google/apis/appengine_v1beta5/representations.rb,
generated/google/apis/appengine_v1beta5/representations.rb
Overview
Custom static error page to be served when an error occurs.
Instance Attribute Summary collapse
-
#error_code ⇒ String
Error condition this handler applies to.
-
#mime_type ⇒ String
MIME type of file.
-
#static_file ⇒ String
Static file content to be served for this error.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ErrorHandler
constructor
A new instance of ErrorHandler.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ErrorHandler
Returns a new instance of ErrorHandler.
1050 1051 1052 |
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 1050 def initialize(**args) update!(**args) end |
Instance Attribute Details
#error_code ⇒ String
Error condition this handler applies to.
Corresponds to the JSON property errorCode
1038 1039 1040 |
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 1038 def error_code @error_code end |
#mime_type ⇒ String
MIME type of file. Defaults to text/html
.
Corresponds to the JSON property mimeType
1048 1049 1050 |
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 1048 def mime_type @mime_type end |
#static_file ⇒ String
Static file content to be served for this error.
Corresponds to the JSON property staticFile
1043 1044 1045 |
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 1043 def static_file @static_file end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1055 1056 1057 1058 1059 |
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 1055 def update!(**args) @error_code = args[:error_code] if args.key?(:error_code) @static_file = args[:static_file] if args.key?(:static_file) @mime_type = args[:mime_type] if args.key?(:mime_type) end |