class SequenceServer::InvalidSequenceIdError

InvalidSequenceIdError is raised when the FASTA sequence ID provided by the frontend appears to be invalid. It is important to validate the sequence ID format for security reasons.

Attributes

more_info[R]

Public Class Methods

new(more_info) click to toggle source
Calls superclass method
# File lib/sequenceserver/api_errors.rb, line 36
def initialize(more_info)
  super
  @more_info = more_info
end

Public Instance Methods

http_status() click to toggle source
# File lib/sequenceserver/api_errors.rb, line 41
def http_status
  422
end
message() click to toggle source
# File lib/sequenceserver/api_errors.rb, line 49
def message
  "The action you're trying to perform is not possible because \
    one of the FASTA ids seems to be invalid."
end
title() click to toggle source
# File lib/sequenceserver/api_errors.rb, line 45
def title
  'Sequence ID invalid'
end