Class: Killbill::Plugin::Model::PaymentPluginApiException

Inherits:
Object
  • Object
show all
Defined in:
lib/killbill/gen/plugin-api/payment_plugin_api_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePaymentPluginApiException

Returns a new instance of PaymentPluginApiException.



37
38
# File 'lib/killbill/gen/plugin-api/payment_plugin_api_exception.rb', line 37

def initialize()
end

Instance Attribute Details

#error_messageObject

Returns the value of attribute error_message.



35
36
37
# File 'lib/killbill/gen/plugin-api/payment_plugin_api_exception.rb', line 35

def error_message
  @error_message
end

#error_typeObject

Returns the value of attribute error_type.



35
36
37
# File 'lib/killbill/gen/plugin-api/payment_plugin_api_exception.rb', line 35

def error_type
  @error_type
end

Instance Method Details

#to_javaObject



40
41
42
43
44
45
46
47
# File 'lib/killbill/gen/plugin-api/payment_plugin_api_exception.rb', line 40

def to_java()
  # conversion for error_type [type = java.lang.String]
  @error_type = @error_type.to_s unless @error_type.nil?

  # conversion for error_message [type = java.lang.String]
  @error_message = @error_message.to_s unless @error_message.nil?
  Java::org.killbill.billing.payment.plugin.api.PaymentPluginApiException.new(@error_type, @error_message)
end

#to_ruby(j_obj) ⇒ Object



49
50
51
52
53
54
55
56
# File 'lib/killbill/gen/plugin-api/payment_plugin_api_exception.rb', line 49

def to_ruby(j_obj)
  # conversion for error_type [type = java.lang.String]
  @error_type = j_obj.error_type

  # conversion for error_message [type = java.lang.String]
  @error_message = j_obj.error_message
  self
end