HomeSort by relevance Sort by last modified time
    Searched refs:FormatError (Results 1 - 25 of 39) sorted by null

1 2

  /external/fmtlib/test/
format-test.cc 75 using fmt::FormatError;
538 EXPECT_THROW_MSG(format("{"), FormatError, "invalid format string");
539 EXPECT_THROW_MSG(format("}"), FormatError, "unmatched '}' in format string");
540 EXPECT_THROW_MSG(format("{0{}"), FormatError, "invalid format string");
558 EXPECT_THROW_MSG(format("{"), FormatError, "invalid format string");
559 EXPECT_THROW_MSG(format("{?}"), FormatError, "invalid format string");
560 EXPECT_THROW_MSG(format("{0"), FormatError, "invalid format string");
561 EXPECT_THROW_MSG(format("{0}"), FormatError, "argument index out of range");
565 EXPECT_THROW_MSG(format(format_str), FormatError, "invalid format string");
567 EXPECT_THROW_MSG(format(format_str), FormatError,
    [all...]
printf-test.cc 38 using fmt::FormatError;
83 FormatError, "number is too big");
85 FormatError, "number is too big");
90 FormatError, "invalid format string");
92 FormatError, "number is too big");
94 FormatError, "cannot switch from manual to automatic argument indexing");
97 FormatError, "invalid format string");
99 FormatError, "number is too big");
101 FormatError, "cannot switch from automatic to manual argument indexing");
105 FormatError, "number is too big")
    [all...]
ostream-test.cc 36 using fmt::FormatError;
90 FormatError, "format specifier '=' requires numeric argument");
94 FormatError, "format specifier '+' requires numeric argument");
96 FormatError, "format specifier '-' requires numeric argument");
98 FormatError, "format specifier ' ' requires numeric argument");
100 FormatError, "format specifier '#' requires numeric argument");
102 FormatError, "format specifier '0' requires numeric argument");
  /prebuilts/go/darwin-x86/src/debug/macho/
fat.go 40 var ErrNotFat = &FormatError{0, "not a fat Mach-O file", nil}
53 return nil, &FormatError{0, "error reading magic number", nil}
63 return nil, &FormatError{0, "invalid magic number", nil}
72 return nil, &FormatError{offset, "invalid fat_header", nil}
77 return nil, &FormatError{offset, "file contains no images", nil}
93 return nil, &FormatError{offset, "invalid fat_arch header", nil}
106 return nil, &FormatError{offset, fmt.Sprintf("duplicate architecture cpu=%v, subcpu=%#x", fa.Cpu, fa.SubCpu), nil}
115 return nil, &FormatError{offset, fmt.Sprintf("Mach-O type for architecture #%d (type=%#x) does not match first (type=%#x)", i, fa.Type, machoType), nil}
file.go 150 // FormatError is returned by some operations if the data does
152 type FormatError struct {
158 func (e *FormatError) Error() string {
216 return nil, &FormatError{0, "invalid magic number", nil}
238 return nil, &FormatError{offset, "command block too small", nil}
242 return nil, &FormatError{offset, "invalid command block size", nil}
260 return nil, &FormatError{offset, "invalid name in dynamic library command", hdr.Name}
424 return nil, &FormatError{offset, "invalid name in symbol table", n.Name}
501 return nil, &FormatError{0, "missing symbol table", nil}
  /prebuilts/go/linux-x86/src/debug/macho/
fat.go 40 var ErrNotFat = &FormatError{0, "not a fat Mach-O file", nil}
53 return nil, &FormatError{0, "error reading magic number", nil}
63 return nil, &FormatError{0, "invalid magic number", nil}
72 return nil, &FormatError{offset, "invalid fat_header", nil}
77 return nil, &FormatError{offset, "file contains no images", nil}
93 return nil, &FormatError{offset, "invalid fat_arch header", nil}
106 return nil, &FormatError{offset, fmt.Sprintf("duplicate architecture cpu=%v, subcpu=%#x", fa.Cpu, fa.SubCpu), nil}
115 return nil, &FormatError{offset, fmt.Sprintf("Mach-O type for architecture #%d (type=%#x) does not match first (type=%#x)", i, fa.Type, machoType), nil}
file.go 150 // FormatError is returned by some operations if the data does
152 type FormatError struct {
158 func (e *FormatError) Error() string {
216 return nil, &FormatError{0, "invalid magic number", nil}
238 return nil, &FormatError{offset, "command block too small", nil}
242 return nil, &FormatError{offset, "invalid command block size", nil}
260 return nil, &FormatError{offset, "invalid name in dynamic library command", hdr.Name}
424 return nil, &FormatError{offset, "invalid name in symbol table", n.Name}
501 return nil, &FormatError{0, "missing symbol table", nil}
  /external/fmtlib/fmt/
time.h 32 FMT_THROW(FormatError("missing '}' in format string"));
98 FMT_THROW(fmt::FormatError("time_t value out of range"));
134 FMT_THROW(fmt::FormatError("time_t value out of range"));
printf.h 46 FMT_THROW(FormatError("precision is not integer"));
52 FMT_THROW(FormatError("number is too big"));
156 FMT_THROW(FormatError("width is not integer"));
169 FMT_THROW(FormatError("number is too big"));
348 FMT_THROW(FormatError(!*s ? "invalid format string" : error));
463 FMT_THROW(FormatError("invalid format string"));
format.h 594 class FormatError : public std::runtime_error {
596 explicit FormatError(CStringRef message)
598 FormatError(const FormatError &ferr) : std::runtime_error(ferr) {}
599 ~FormatError() FMT_DTOR_NOEXCEPT;
    [all...]
format.cc 84 FMT_FUNC FormatError::~FormatError() FMT_DTOR_NOEXCEPT {}
299 FMT_THROW(FormatError(
302 FMT_THROW(FormatError(
  /prebuilts/go/darwin-x86/src/image/jpeg/
huffman.go 43 var errShortHuffmanData = FormatError("short Huffman data")
94 return FormatError("DHT has wrong length")
101 return FormatError("bad Tc value")
105 return FormatError("bad Th value")
119 return FormatError("Huffman table has zero length")
122 return FormatError("Huffman table has excessive length")
126 return FormatError("DHT has wrong length")
179 return 0, FormatError("uninitialized Huffman table")
220 return 0, FormatError("bad Huffman code")
scan.go 53 return FormatError("missing SOF marker")
56 return FormatError("SOS has wrong length")
63 return FormatError("SOS length inconsistent with number of components")
80 return FormatError("unknown component selector")
90 return FormatError("repeated component selector")
97 return FormatError("bad Td value")
101 return FormatError("bad Ta value")
107 return FormatError("total sampling factors too large")
133 return FormatError("bad spectral selection bounds")
136 return FormatError("progressive AC coefficients for more than one component"
    [all...]
reader.go 20 // A FormatError reports that the input is not a valid JPEG.
21 type FormatError string
23 func (e FormatError) Error() string { return "invalid JPEG format: " + string(e) }
197 var errMissingFF00 = FormatError("missing 0xff00 sequence")
300 return FormatError("multiple SOF markers")
322 return FormatError("SOF has wrong length")
331 return FormatError("repeated component identifier")
337 return FormatError("bad Tq value")
343 return FormatError("luma/chroma subsampling ratio")
432 return FormatError("bad Tq value"
    [all...]
  /prebuilts/go/linux-x86/src/image/jpeg/
huffman.go 43 var errShortHuffmanData = FormatError("short Huffman data")
94 return FormatError("DHT has wrong length")
101 return FormatError("bad Tc value")
105 return FormatError("bad Th value")
119 return FormatError("Huffman table has zero length")
122 return FormatError("Huffman table has excessive length")
126 return FormatError("DHT has wrong length")
179 return 0, FormatError("uninitialized Huffman table")
220 return 0, FormatError("bad Huffman code")
scan.go 53 return FormatError("missing SOF marker")
56 return FormatError("SOS has wrong length")
63 return FormatError("SOS length inconsistent with number of components")
80 return FormatError("unknown component selector")
90 return FormatError("repeated component selector")
97 return FormatError("bad Td value")
101 return FormatError("bad Ta value")
107 return FormatError("total sampling factors too large")
133 return FormatError("bad spectral selection bounds")
136 return FormatError("progressive AC coefficients for more than one component"
    [all...]
reader.go 20 // A FormatError reports that the input is not a valid JPEG.
21 type FormatError string
23 func (e FormatError) Error() string { return "invalid JPEG format: " + string(e) }
197 var errMissingFF00 = FormatError("missing 0xff00 sequence")
300 return FormatError("multiple SOF markers")
322 return FormatError("SOF has wrong length")
331 return FormatError("repeated component identifier")
337 return FormatError("bad Tq value")
343 return FormatError("luma/chroma subsampling ratio")
432 return FormatError("bad Tq value"
    [all...]
  /prebuilts/go/darwin-x86/src/image/png/
reader.go 123 // A FormatError reports that the input is not a valid PNG.
124 type FormatError string
126 func (e FormatError) Error() string { return "png: invalid format: " + string(e) }
128 var chunkOrderError = FormatError("chunk out of order")
144 return FormatError("bad IHDR length")
157 return FormatError("invalid interlace method")
163 return FormatError("non-positive dimension")
228 return FormatError("bad PLTE length")
254 return FormatError("PLTE, color type mismatch")
263 return FormatError("bad tRNS length"
    [all...]
  /prebuilts/go/linux-x86/src/image/png/
reader.go 123 // A FormatError reports that the input is not a valid PNG.
124 type FormatError string
126 func (e FormatError) Error() string { return "png: invalid format: " + string(e) }
128 var chunkOrderError = FormatError("chunk out of order")
144 return FormatError("bad IHDR length")
157 return FormatError("invalid interlace method")
163 return FormatError("non-positive dimension")
228 return FormatError("bad PLTE length")
254 return FormatError("PLTE, color type mismatch")
263 return FormatError("bad tRNS length"
    [all...]
  /external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/
task.rb 405 raise Grammar::FormatError[ @source, @path ]
413 raise( Grammar::FormatError, "Unknown ANTLR target language: %p" % @language )
456 class GrammarFile::FormatError < StandardError
486 end # error Grammar::FormatError
  /external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/test/
grammar.rb 262 raise Grammar::FormatError[ source, path ]
334 class Grammar::FormatError < StandardError
364 end # error Grammar::FormatError
  /prebuilts/go/darwin-x86/src/debug/elf/
file.go 124 err := &FormatError{int64(s.Offset), "unknown compression type", s.compressionType}
169 type FormatError struct {
175 func (e *FormatError) Error() string {
232 return nil, &FormatError{0, "bad magic number", ident[0:4]}
242 return nil, &FormatError{0, "unknown ELF class", f.Class}
252 return nil, &FormatError{0, "unknown ELF data encoding", f.Data}
257 return nil, &FormatError{0, "unknown ELF version", f.Version}
280 return nil, &FormatError{0, "mismatched ELF version", v}
299 return nil, &FormatError{0, "mismatched ELF version", v}
311 return nil, &FormatError{0, "invalid ELF shstrndx", shstrndx
    [all...]
  /prebuilts/go/linux-x86/src/debug/elf/
file.go 124 err := &FormatError{int64(s.Offset), "unknown compression type", s.compressionType}
169 type FormatError struct {
175 func (e *FormatError) Error() string {
232 return nil, &FormatError{0, "bad magic number", ident[0:4]}
242 return nil, &FormatError{0, "unknown ELF class", f.Class}
252 return nil, &FormatError{0, "unknown ELF data encoding", f.Data}
257 return nil, &FormatError{0, "unknown ELF version", f.Version}
280 return nil, &FormatError{0, "mismatched ELF version", v}
299 return nil, &FormatError{0, "mismatched ELF version", v}
311 return nil, &FormatError{0, "invalid ELF shstrndx", shstrndx
    [all...]
  /prebuilts/go/darwin-x86/src/debug/pe/
file.go 339 // FormatError is unused.
341 type FormatError struct {
344 func (e *FormatError) Error() string {
  /prebuilts/go/linux-x86/src/debug/pe/
file.go 339 // FormatError is unused.
341 type FormatError struct {
344 func (e *FormatError) Error() string {

Completed in 312 milliseconds

1 2