class Deliver::AppScreenshotValidator::ValidationError
A simple structure that holds error information as well as formatted error messages consistently Set ‘to_skip` to `true` when just needing to skip uploading rather than causing a crash.
Constants
- FILE_EXTENSION_MISMATCH
- INVALID_FILE_EXTENSION
- INVALID_SCREEN_SIZE
-
Constants that can be given to ‘type` param
- UNACCEPTABLE_DEVICE
Attributes
Public Class Methods
Source
# File deliver/lib/deliver/app_screenshot_validator.rb, line 16 def initialize(type: nil, path: nil, debug_info: nil, to_skip: false) @type = type @path = path @debug_info = debug_info @to_skip = to_skip end
Public Instance Methods
Source
# File deliver/lib/deliver/app_screenshot_validator.rb, line 27 def inspect "\"#{type}\"" end
Source
# File deliver/lib/deliver/app_screenshot_validator.rb, line 23 def to_s "#{to_skip ? '🏃 Skipping' : '🚫 Error'}: #{path} - #{type} (#{debug_info})" end