module Errors # It's likely that many 'unknown server errors' are actually errors from # the Perforce server. This exception allows your client code to inspect # the returned information to **potentially** handle issues the API code # was unable to deal with. This can happen in cases of funky Perforce # server configurations. # # Expect at least one message describing the problem. Each message contains # 3 attributes: 'MessageCode', 'MessageSeverity', and 'MessageText'. You # probably should only use the message code for any error handling logic, # reserving the other fields for diagnostic usage. class PerforceProblem < Exception attr_accessor :messages def initialize(messages) @messages = messages end def to_s "PerforceProblem<@messages:[#{@messages}]>" end end end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 15741 | ptomiak | Branch HWS for my use. | ||
//guest/perforce_software/helix-web-services/main/source/helix_web_services_client/lib/errors/perforce_problem.rb | |||||
#1 | 15622 | tjuricek |
Move source code to 'source/' subdirectory of branch. build/ will remain where it is. |
||
//guest/perforce_software/helix-web-services/main/helix_web_services_client/lib/errors/perforce_problem.rb | |||||
#1 | 13799 | tjuricek |
Start with branch specs hosting in a new monolithic 'helix web services' project. Converting from a microservice to a monolithic architecture due to resource constraints at getting a deployable system running. Additionally, since it's not expected that people will upgrade often, the major benefit of microservices - being able to add services individually without affecting others - is not really a major benefit. The Ruby SDK will be consolidated into a single 'helix web services client' project. It may end up being distributed via Rubygems. This only runs branch specs at the moment. I want to get a CD pipeline setup for the monolithic server before revising more methods. |
||
//guest/perforce_software/helix-web-services/main/p4_web_api/clients/ruby/p4_web_api_client/lib/p4_web_api_client/errors/perforce_problem.rb | |||||
#1 | 13412 | tjuricek |
Initial version of the web-services mainline. This is a collection of several projects, that will likely often get released together, though many of them may not always be relevant. See the README for more information. |