Enum juniper::parser::LexerError [−][src]
pub enum LexerError { UnknownCharacter(char), UnexpectedCharacter(char), UnterminatedString, UnknownCharacterInString(char), UnknownEscapeSequence(String), UnexpectedEndOfFile, InvalidNumber, }
Expand description
Error when tokenizing the input source
Variants
UnknownCharacter(char)
Expand description
An unknown character was found
Unknown characters are characters that do not occur anywhere in the
GraphQL language, such as ?
or %
.
UnexpectedCharacter(char)
Expand description
An unexpected character was found
Unexpected characters are characters that do exist in the GraphQL language, but is not expected at the current position in the document.
Expand description
An unterminated string literal was found
Apart from forgetting the ending "
, terminating a string within a
Unicode escape sequence or having a line break in the string also
causes this error.
UnknownCharacterInString(char)
Expand description
An unknown character in a string literal was found
This occurs when an invalid source character is found in a string literal, such as ASCII control characters.
UnknownEscapeSequence(String)
Expand description
An unknown escape sequence in a string literal was found
Only a limited set of escape sequences are supported, this is emitted
when e.g. "\l"
is parsed.
Expand description
The input source was unexpectedly terminated
Emitted when the current token requires a succeeding character, but
the source has reached EOF. Emitted when scanning e.g. "1."
.
Expand description
An invalid number literal was found
Trait Implementations
impl Debug for LexerError
[src]
impl Debug for LexerError
[src]impl Display for LexerError
[src]
impl Display for LexerError
[src]impl Error for LexerError
[src]
impl Error for LexerError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl PartialEq<LexerError> for LexerError
[src]
impl PartialEq<LexerError> for LexerError
[src]fn eq(&self, other: &LexerError) -> bool
[src]
fn eq(&self, other: &LexerError) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &LexerError) -> bool
[src]
fn ne(&self, other: &LexerError) -> bool
[src]This method tests for !=
.
impl Eq for LexerError
[src]
impl StructuralEq for LexerError
[src]
impl StructuralPartialEq for LexerError
[src]
Auto Trait Implementations
impl RefUnwindSafe for LexerError
impl Send for LexerError
impl Sync for LexerError
impl Unpin for LexerError
impl UnwindSafe for LexerError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,