class Xooa::Exception::XooaApiException

Attributes

errorCode[RW]
errorMessage[RW]

Public Class Methods

new(errorCode, errorMessage) click to toggle source

Initialize XooaApiException @param errorCode error code for the exception @param errorMessage error message for the exception @return XooaApiException

# File lib/xooa/exception/XooaApiException.rb, line 29
def initialize(errorCode, errorMessage)
  @errorCode = errorCode
  @errorMessage = errorMessage
end

Public Instance Methods

display() click to toggle source

display the details for the XooaApiException

# File lib/xooa/exception/XooaApiException.rb, line 35
def display
  puts("Error Code - #{@errorCode}")
  puts("Error Message - #{@errorMessage}")
end